diff options
author | Sage Weil <sage@newdream.net> | 2011-10-24 12:05:47 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-10-25 19:10:17 -0400 |
commit | 339573406737461cfb17bebabf7ba536a302d841 (patch) | |
tree | 9879390219993f759338b8bbfbf92a4ebb836cd8 /fs | |
parent | 3310f7541f0c991b51324a7712db51fb8f912601 (diff) |
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ceph/addr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index 5ffee90d9fb5..4144caf2f9d3 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c | |||
@@ -345,7 +345,6 @@ static int start_read(struct inode *inode, struct list_head *page_list, int max) | |||
345 | 345 | ||
346 | out_pages: | 346 | out_pages: |
347 | ceph_release_page_vector(pages, nr_pages); | 347 | ceph_release_page_vector(pages, nr_pages); |
348 | kfree(pages); | ||
349 | out: | 348 | out: |
350 | ceph_osdc_put_request(req); | 349 | ceph_osdc_put_request(req); |
351 | return ret; | 350 | return ret; |