From 177417949375b4bc63de38689cf7c835d7bbc76b Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Wed, 22 May 2019 13:09:22 -0400 Subject: [PATCH] classifier: fix dentry alias list iteration Signed-off-by: Adam Rutkowski --- modules/cas_cache/classifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cas_cache/classifier.c b/modules/cas_cache/classifier.c index 30f6bb35a..d442e1513 100644 --- a/modules/cas_cache/classifier.c +++ b/modules/cas_cache/classifier.c @@ -315,7 +315,7 @@ static struct dentry *_cas_cls_dir_get_inode_dentry(struct inode *inode) spin_lock(&iter->d_lock); if (!d_unhashed(iter)) d = iter; - spin_unlock(&d->d_lock); + spin_unlock(&iter->d_lock); if (d) break; }