IPoIB: Fix error path in ipoib_mcast_dev_flush()
authorEli Cohen <eli@mellanox.co.il>
Tue, 10 Jan 2006 15:42:14 +0000 (07:42 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 10 Jan 2006 15:42:14 +0000 (07:42 -0800)
commit70b4c8cdc168bb5d18e23fd205c4ede1b756a8b2
tree029d149d2b25eae3b8ecf4dfa62e0b3c47c7db02
parentcf311cd49a78f1e431787068cc31d29d06a415e6
IPoIB: Fix error path in ipoib_mcast_dev_flush()

Don't leak memory on allocation failure for broadcast mcast group.
Also, print a warning to match handling for other mcast groups.

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_multicast.c