Commit 33957340 authored by Sage Weil's avatar 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: default avatarJeff Wu <cpwu@tnsoft.com.cn>
Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment