IPoIB: Close race in ipoib_flush_paths()
authorEli Cohen <eli@mellanox.co.il>
Wed, 5 Apr 2006 12:59:34 +0000 (15:59 +0300)
committerRoland Dreier <rolandd@cisco.com>
Mon, 10 Apr 2006 16:43:59 +0000 (09:43 -0700)
commita30bb96c6f5aca6513e4dbd94962da03d14b20a9
tree7314d0813071b9e1b808422c96e868c26e14245a
parentabf45dbb5b256dab439ca3b6b71191ecfddf9cb6
IPoIB: Close race in ipoib_flush_paths()

ib_sa_cancel_query() must be called with priv->lock held since
a completion might arrive and set path->query to NULL.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c