diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-09-28 04:10:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-28 20:25:48 +0300 |
commit | f3f19ddcdbc6c5fb8eaf0b652d84bbc5216722b4 (patch) | |
tree | 157f91e7ad63b856c8ea2e87a55479fd5524a3c0 /fs | |
parent | 0b13f3a612d76eaa29bad32c2a93f085faf21120 (diff) | |
download | linux-f3f19ddcdbc6c5fb8eaf0b652d84bbc5216722b4.tar.xz |
ceph: fix dentry leak in ceph_readdir_prepopulate
[ Upstream commit c58f450bd61511d897efc2ea472c69630635b557 ]
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 2ad3f4ab4dcf..0be931cf3c44 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -1515,7 +1515,6 @@ retry_lookup: if (IS_ERR(realdn)) { err = PTR_ERR(realdn); d_drop(dn); - dn = NULL; goto next_item; } dn = realdn; |