mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
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:
parent
3310f7541f
commit
3395734067
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user