summaryrefslogtreecommitdiff
path: root/fs/ceph
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2018-09-28 04:10:29 +0300
committerIlya Dryomov <idryomov@gmail.com>2018-10-22 11:28:20 +0300
commitc58f450bd61511d897efc2ea472c69630635b557 (patch)
tree43bc3ae23c60d429b1e569cf13f661006cb43e76 /fs/ceph
parentefe328230dc01aa0b1269aad0b5fae73eea4677a (diff)
downloadlinux-c58f450bd61511d897efc2ea472c69630635b557.tar.xz
ceph: fix dentry leak in ceph_readdir_prepopulate
Signed-off-by: "Yan, Zheng" <zyan@redhat.com> Reviewed-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph')
-rw-r--r--fs/ceph/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index 4055ab4d5c52..46254d53392f 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1681,7 +1681,6 @@ retry_lookup:
if (IS_ERR(realdn)) {
err = PTR_ERR(realdn);
d_drop(dn);
- dn = NULL;
goto next_item;
}
dn = realdn;