aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2009-08-30 10:36:48 +0000
committerJames Bottomley <[email protected]>2009-09-12 14:35:34 +0000
commitafffd3dabe5209882c8cc59a373a4d33b5db304a (patch)
treec7ba34b77658151f0c56db47e9e1f4a617a3171c /lib/debugobjects.c
parent[SCSI] libiscsi, bnx2i: make bound ep check common (diff)
downloadkernel-afffd3dabe5209882c8cc59a373a4d33b5db304a.tar.gz
kernel-afffd3dabe5209882c8cc59a373a4d33b5db304a.zip
[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 <[email protected]> Acked-by: FUJITA Tomonori <[email protected]> Cc: Stable Tree <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions