* [PATCH] ceph: fix inode refcount leak when ceph_fill_inode on non-I_NEW inode fails
@ 2020-11-12 15:42 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2020-11-12 15:42 UTC (permalink / raw)
To: ceph-devel
Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
fs/ceph/inode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index ab02966ef0a4..88bbeb05bd27 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -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;
--
2.28.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-12 15:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-12 15:42 [PATCH] ceph: fix inode refcount leak when ceph_fill_inode on non-I_NEW inode fails Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox