提交 33957340 编写于 作者: S Sage Weil

libceph: fix double-free of page vector

ceph_release_page_vector() kfrees the vector; we shouldn't do it here too.
Reported-by: NJeff Wu <cpwu@tnsoft.com.cn>
Signed-off-by: NSage Weil <sage@newdream.net>
上级 3310f754
......@@ -345,7 +345,6 @@ static int start_read(struct inode *inode, struct list_head *page_list, int max)
out_pages:
ceph_release_page_vector(pages, nr_pages);
kfree(pages);
out:
ceph_osdc_put_request(req);
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册