mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-04 01:56:40 +07:00
ceph: fix inode refcount leak when ceph_fill_inode on non-I_NEW inode fails
[ Upstream commit 68cbb8056a4c24c6a38ad2b79e0a9764b235e8fa ] Signed-off-by: Jeff Layton <jlayton@kernel.org> Reviewed-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8bcfa178f9
commit
86be0f2a0e
@ -1335,6 +1335,8 @@ int ceph_fill_trace(struct super_block *sb, struct ceph_mds_request *req)
|
||||
in, ceph_vinop(in));
|
||||
if (in->i_state & I_NEW)
|
||||
discard_new_inode(in);
|
||||
else
|
||||
iput(in);
|
||||
goto done;
|
||||
}
|
||||
req->r_target_inode = in;
|
||||
|
Loading…
Reference in New Issue
Block a user