diff options
author | Yan, Zheng <zyan@redhat.com> | 2018-09-28 04:10:29 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-01 11:16:48 +0300 |
commit | 146fb4b0d4fe8a35e3cc28cd7a9fa69a5d1ee8ab (patch) | |
tree | 94e039313694ddea99bccf75e215a5dbff3e4553 /fs/ceph | |
parent | 083757d848597e5e33528c931751ceb8a98bc6c0 (diff) | |
download | linux-146fb4b0d4fe8a35e3cc28cd7a9fa69a5d1ee8ab.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/ceph')
-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 acb70a6a82f0..1e438e0faf77 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c @@ -1694,7 +1694,6 @@ retry_lookup: if (IS_ERR(realdn)) { err = PTR_ERR(realdn); d_drop(dn); - dn = NULL; goto next_item; } dn = realdn; |