OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ccd1acd
)
ceph: fix inode refcount leak when ceph_fill_inode on non-I_NEW inode fails
author
Jeff Layton
<jlayton@kernel.org>
Thu, 12 Nov 2020 14:37:59 +0000
(09:37 -0500)
committer
Ilya Dryomov
<idryomov@gmail.com>
Mon, 14 Dec 2020 22:21:47 +0000
(23:21 +0100)
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c
patch
|
blob
|
history
diff --git
a/fs/ceph/inode.c
b/fs/ceph/inode.c
index
12140da
..
ada9062
100644
(file)
--- a/
fs/ceph/inode.c
+++ b/
fs/ceph/inode.c
@@
-1335,6
+1335,8
@@
retry_lookup:
in, ceph_vinop(in));
if (in->i_state & I_NEW)
discard_new_inode(in);
+ else
+ iput(in);
goto done;
}
req->r_target_inode = in;