ceph: fix inode reference leak
authorYan, Zheng <zyan@redhat.com>
Fri, 29 Apr 2016 15:40:23 +0000 (23:40 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 May 2016 23:15:36 +0000 (01:15 +0200)
Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/inode.c

index f51b6fd5f570e891d1f16a793f6aa57a5d5573e8..4889aaa72accb2c4d0ed752babff73ff0a95df9f 100644 (file)
@@ -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;