Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs fix from Al Viro: "Another overlayfs fix" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: ovl: don't poison cursor
This commit is contained in:
commit
20f3963d8f
|
@ -168,7 +168,7 @@ static void ovl_cache_put(struct ovl_dir_file *od, struct dentry *dentry)
|
|||
{
|
||||
struct ovl_dir_cache *cache = od->cache;
|
||||
|
||||
list_del(&od->cursor.l_node);
|
||||
list_del_init(&od->cursor.l_node);
|
||||
WARN_ON(cache->refcount <= 0);
|
||||
cache->refcount--;
|
||||
if (!cache->refcount) {
|
||||
|
|
Loading…
Reference in New Issue