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>
This commit is contained in:
Yan, Zheng 2018-09-28 09:10:29 +08:00 committed by Ilya Dryomov
parent efe328230d
commit c58f450bd6
1 changed files with 0 additions and 1 deletions

View File

@ -1681,7 +1681,6 @@ int ceph_readdir_prepopulate(struct ceph_mds_request *req,
if (IS_ERR(realdn)) {
err = PTR_ERR(realdn);
d_drop(dn);
dn = NULL;
goto next_item;
}
dn = realdn;