]> git.baikalelectronics.ru Git - kernel.git/commit
IB/srp: Fix memory leak on reconnect
authorVu Pham <vu@mellanox.com>
Tue, 21 Nov 2006 22:14:10 +0000 (14:14 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:09 +0000 (15:33 -0800)
commit68cda62708be3f01fca79d5431e7cffd19fc5901
treef0895261c6a063604837b9321315c896f4b5e8b8
parent5f93510566eecac26a12e5571487c231c201035c
IB/srp: Fix memory leak on reconnect

SRP reallocates the IU buffers for tx_ring and rx_ring without freeing
the old buffers when it reconnects to a target.  Fix this by keeping
the old IU buffers around.

Signed-off-by: Vu Pham <vu@mellanox.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c