summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-05-07 09:48:37 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-05-07 09:48:37 -0700
commitde268ccb42d6ec5475ec5a5e60723b665d6e0af2 (patch)
tree14ac01ecb135033e68c2433c96ada79cde2fe449 /fs
parenta811c1fa0a02c062555b54651065899437bacdbe (diff)
parent8aebfffacfa379ba400da573a5bf9e49634e38cb (diff)
Merge tag 'configfs-for-5.7' of git://git.infradead.org/users/hch/configfs
Pull configfs fix from Christoph Hellwig: "Fix a refcount leak in configfs_rmdir (Xiyu Yang)" * tag 'configfs-for-5.7' of git://git.infradead.org/users/hch/configfs: configfs: fix config_item refcnt leak in configfs_rmdir()
Diffstat (limited to 'fs')
-rw-r--r--fs/configfs/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
index cf7b7e1d5bd7..cb733652ecca 100644
--- a/fs/configfs/dir.c
+++ b/fs/configfs/dir.c
@@ -1519,6 +1519,7 @@ static int configfs_rmdir(struct inode *dir, struct dentry *dentry)
spin_lock(&configfs_dirent_lock);
configfs_detach_rollback(dentry);
spin_unlock(&configfs_dirent_lock);
+ config_item_put(parent_item);
return -EINTR;
}
frag->frag_dead = true;