]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ceph: fix dentry leak in ceph_readdir_prepopulate
authorYan, Zheng <zyan@redhat.com>
Fri, 28 Sep 2018 01:10:29 +0000 (09:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 1 Dec 2019 08:16:48 +0000 (09:16 +0100)
[ 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>
fs/ceph/inode.c

index acb70a6a82f0f5cb644234da71d1251d9872f2c1..1e438e0faf77ef976cbdf6cfb44fa3ef3314020f 100644 (file)
@@ -1694,7 +1694,6 @@ retry_lookup:
                        if (IS_ERR(realdn)) {
                                err = PTR_ERR(realdn);
                                d_drop(dn);
-                               dn = NULL;
                                goto next_item;
                        }
                        dn = realdn;