summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-10-24 09:05:47 -0700
committerSage Weil <sage@newdream.net>2011-10-25 16:10:17 -0700
commit339573406737461cfb17bebabf7ba536a302d841 (patch)
tree9879390219993f759338b8bbfbf92a4ebb836cd8 /fs/ceph
parent3310f7541f0c991b51324a7712db51fb8f912601 (diff)
downloadlinux-339573406737461cfb17bebabf7ba536a302d841.tar.gz
linux-339573406737461cfb17bebabf7ba536a302d841.tar.bz2
linux-339573406737461cfb17bebabf7ba536a302d841.zip
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/ceph')
-rw-r--r--fs/ceph/addr.c1
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)
out_pages:
ceph_release_page_vector(pages, nr_pages);
- kfree(pages);
out:
ceph_osdc_put_request(req);
return ret;