IPoIB: Make sure path is fully initialized before using it
commit47f7a0714b67b904a3a36e2f2d85904e8064219b
authorMichael S. Tsirkin <mst@mellanox.co.il>
Tue, 17 Jan 2006 17:22:05 +0000 (17 09:22 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 17 Jan 2006 17:22:05 +0000 (17 09:22 -0800)
tree8ddea2cb121a8a5f5b0802d1fbb81a7d3d61cd08
parent2664b25051f7ab96b22b199aa2f5ef6a949a4296
IPoIB: Make sure path is fully initialized before using it

The SA path record query completion can initialize path->pathrec.dlid
before IPoIB's callback runs and initializes path->ah, so we must test
ah rather than dlid.

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