commit | c58f450bd61511d897efc2ea472c69630635b557 | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zyan@redhat.com> | Fri Sep 28 09:10:29 2018 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon Oct 22 10:28:20 2018 +0200 |
tree | 43bc3ae23c60d429b1e569cf13f661006cb43e76 | |
parent | efe328230dc01aa0b1269aad0b5fae73eea4677a [diff] |
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>
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 4055ab4..46254d5 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c
@@ -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;