summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYan, Zheng <zyan@redhat.com>2016-04-29 18:40:23 +0300
committerIlya Dryomov <idryomov@gmail.com>2016-05-26 02:15:36 +0300
commit209ae762a64397557be2bc48490fd968912e9a71 (patch)
treea3a370dd6ace60fff136b2db8e6701f2d88d08aa
parentf3c4ebe65ea149ec892f94474233cfebe9cbe299 (diff)
downloadlinux-209ae762a64397557be2bc48490fd968912e9a71.tar.xz
ceph: fix inode reference leak
Signed-off-by: Yan, Zheng <zyan@redhat.com>
-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 f51b6fd5f570..4889aaa72acc 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;