Files
linux-legacy/drivers
Bart Van Assche 328b1e3dfd SCSI: libsrp: fix memory leak in srp_ring_free()
commit afffd3dabe5209882c8cc59a373a4d33b5db304a upstream.

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>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-09-24 08:43:50 -07:00
..
…
2009-07-12 12:22:34 -07:00
2009-08-15 12:58:45 +09:00
…
…
…
2009-07-12 12:22:34 -07:00
2009-08-14 13:09:32 -07:00
…
…
2009-08-04 20:31:32 +02:00
2009-09-03 14:59:16 +01:00
2009-09-06 01:41:24 -07:00
2009-08-26 20:06:52 -07:00
…
…
…
2009-08-18 16:31:13 -07:00
…
2009-07-12 12:22:34 -07:00
…
…
2009-07-30 16:03:45 +09:30
2009-07-01 11:19:47 +02:00
…
…