summaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
authorAlex Elder2013-02-16 05:10:17 +0100
committerSage Weil2013-05-02 06:14:22 +0200
commit3ff5f385b1449a07372d51fb89ca94dbfb6a3be2 (patch)
tree0d902d547dc2f9efe843b94d6a88478563e5e240 /net/ceph/messenger.c
parentLinux 3.9 (diff)
downloadkernel-qcow2-linux-3ff5f385b1449a07372d51fb89ca94dbfb6a3be2.tar.gz
kernel-qcow2-linux-3ff5f385b1449a07372d51fb89ca94dbfb6a3be2.tar.xz
kernel-qcow2-linux-3ff5f385b1449a07372d51fb89ca94dbfb6a3be2.zip
libceph: fix a osd request memory leak
If an invalid layout is provided to ceph_osdc_new_request(), its call to calc_layout() might return an error. At that point in the function we've already allocated an osd request structure, so we need to free it (drop a reference) in the event such an error occurs. The only other value calc_layout() will return is 0, so make that explicit in the successful case. This resolves: http://tracker.ceph.com/issues/4240 Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'net/ceph/messenger.c')
0 files changed, 0 insertions, 0 deletions