diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-05-07 09:48:37 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-05-07 09:48:37 -0700 |
commit | de268ccb42d6ec5475ec5a5e60723b665d6e0af2 (patch) | |
tree | 14ac01ecb135033e68c2433c96ada79cde2fe449 /fs | |
parent | a811c1fa0a02c062555b54651065899437bacdbe (diff) | |
parent | 8aebfffacfa379ba400da573a5bf9e49634e38cb (diff) | |
download | linux-stable-de268ccb42d6ec5475ec5a5e60723b665d6e0af2.tar.gz linux-stable-de268ccb42d6ec5475ec5a5e60723b665d6e0af2.tar.bz2 linux-stable-de268ccb42d6ec5475ec5a5e60723b665d6e0af2.zip |
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.c | 1 |
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; |