瀏覽代碼

ceph: fix inode reference leak

Signed-off-by: Yan, Zheng <zyan@redhat.com>
Yan, Zheng 9 年之前
父節點
當前提交
209ae762a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/ceph/inode.c

+ 1 - 1
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;