aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/overlayfs/readdir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/overlayfs/readdir.c b/fs/overlayfs/readdir.c
index 4e9d7c1fea52..2a7ef4f8e2a6 100644
--- a/fs/overlayfs/readdir.c
+++ b/fs/overlayfs/readdir.c
@@ -168,7 +168,7 @@ static void ovl_cache_put(struct ovl_dir_file *od, struct dentry *dentry)
168{ 168{
169 struct ovl_dir_cache *cache = od->cache; 169 struct ovl_dir_cache *cache = od->cache;
170 170
171 list_del(&od->cursor.l_node); 171 list_del_init(&od->cursor.l_node);
172 WARN_ON(cache->refcount <= 0); 172 WARN_ON(cache->refcount <= 0);
173 cache->refcount--; 173 cache->refcount--;
174 if (!cache->refcount) { 174 if (!cache->refcount) {