mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
ceph: fix dentry leak in ceph_readdir_prepopulate
[ Upstream commit c58f450bd6 ]
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>
This commit is contained in:
parent
083757d848
commit
146fb4b0d4
|
|
@ -1694,7 +1694,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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user