Skip to content

Commit

Permalink
libceph: fix double-free of page vector
Browse files Browse the repository at this point in the history
ceph_release_page_vector() kfrees the vector; we shouldn't do it here too.

Reported-by: Jeff Wu <[email protected]>
Signed-off-by: Sage Weil <[email protected]>
  • Loading branch information
liewegas committed Oct 25, 2011
1 parent 3310f75 commit 3395734
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/ceph/addr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3395734

Please sign in to comment.