IPoIB: Fix another send-only join race
authorMichael S. Tsirkin <mst@mellanox.co.il>
Wed, 8 Feb 2006 00:39:26 +0000 (16:39 -0800)
committerRoland Dreier <rolandd@cisco.com>
Wed, 8 Feb 2006 00:39:26 +0000 (16:39 -0800)
commit7bcb974ef6a0ae903888272c92c66ea779388c01
tree926245a2e120dd5884f3bab92020612fcfbd78bf
parent479a079663bd4c5f3d2714643b1b8c406aaba3e0
IPoIB: Fix another send-only join race

Further, there's an additional issue that I saw in testing:
ipoib_mcast_send may get called when priv->broadcast is NULL (e.g. if
the device was downed and then upped internally because of a port
event).

If this happends and the send-only join request gets completed before
priv->broadcast is set, we get an oops.

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