summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@gmail.com>2009-08-30 14:36:48 +0400
committerJames Bottomley <James.Bottomley@suse.de>2009-09-12 18:35:34 +0400
commitafffd3dabe5209882c8cc59a373a4d33b5db304a (patch)
treec7ba34b77658151f0c56db47e9e1f4a617a3171c /tools/perf
parent661134ad3765348ecd6150a92e736bf28ba40f80 (diff)
downloadlinux-afffd3dabe5209882c8cc59a373a4d33b5db304a.tar.xz
[SCSI] libsrp: fix memory leak in srp_ring_free()
This patch fixes a memory leak in the libsrp function srp_ring_free(). It is not documented whether or not this function should free the ring pointer itself. But the source code of the callers of this function (srp_target_alloc() and srp_target_free()) makes it clear that srp_ring_free() should deallocate the ring pointer itself. Furthermore, the patch below makes srp_ring_free() deallocate all memory allocated by srp_ring_alloc(). This patch affects the ibmvstgt driver, which is the only in-tree driver that calls the srp_ring_free() function (indirectly). Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Cc: Stable Tree <stable@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions