summaryrefslogtreecommitdiffstats
path: root/fs/ceph/inode.c
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-04-29 23:40:23 +0800
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 01:15:36 +0200
commit209ae762a64397557be2bc48490fd968912e9a71 (patch)
treea3a370dd6ace60fff136b2db8e6701f2d88d08aa /fs/ceph/inode.c
parentf3c4ebe65ea149ec892f94474233cfebe9cbe299 (diff)
downloadlinux-0-day-209ae762a64397557be2bc48490fd968912e9a71.tar.gz
linux-0-day-209ae762a64397557be2bc48490fd968912e9a71.tar.xz
ceph: fix inode reference leak
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r--fs/ceph/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c
index f51b6fd5f570e..4889aaa72accb 100644
--- a/fs/ceph/inode.c
+++ b/fs/ceph/inode.c
@@ -1328,8 +1328,8 @@ static int readdir_prepopulate_inodes_only(struct ceph_mds_request *req,
if (rc < 0) {
pr_err("fill_inode badness on %p got %d\n", in, rc);
err = rc;
- continue;
}
+ iput(in);
}
return err;