libceph: fix double-free of page vector

ceph_release_page_vector() kfrees the vector; we shouldn't do it here too.

Reported-by: Jeff Wu <cpwu@tnsoft.com.cn>
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2011-10-24 09:05:47 -07:00
parent 3310f7541f
commit 3395734067

View file

@ -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;