IPoIB: Fix memory leak of multicast group structures
authorEli Cohen <eli@mellanox.co.il>
Thu, 12 Jan 2006 22:32:20 +0000 (14:32 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 12 Jan 2006 22:32:20 +0000 (14:32 -0800)
commit988bd50300ef2e2d5cb8563e2ac99453dd9acd86
tree2ffc52fb4b88a8c9299306880d07062947ce3b32
parent78bfe0b5b67fe126ed98608e42e42fb6ed9aabd4
IPoIB: Fix memory leak of multicast group structures

The current handling of multicast groups in IPoIB ends up never
freeing send-only multicast groups.  It turns out the logic was much
more complicated than it needed to be; we can fix this bug and
completely kill ipoib_mcast_dev_down() at the same time.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_ib.c
drivers/infiniband/ulp/ipoib/ipoib_multicast.c