From: Yan, Zheng Date: Fri, 29 Apr 2016 15:40:23 +0000 (+0800) Subject: ceph: fix inode reference leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=209ae762a64397557be2bc48490fd968912e9a71;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ceph: fix inode reference leak Signed-off-by: Yan, Zheng --- 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;