IB/mlx4: Verify net device validity on port change event
authorMoni Shoua <monis@mellanox.com>
Wed, 18 Mar 2015 14:51:35 +0000 (16:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Mar 2015 19:17:11 +0000 (15:17 -0400)
commit217e8b16a43a1780e77607dc019c5f3b26fab48a
treea0facea5a2aef70d76194d901c52b28dc43df753
parentced585c83b27deca427c606a34dd3eaa6b96d82b
IB/mlx4: Verify net device validity on port change event

Processing an event is done in a different context from the one when
the event was dispatched. This requires a check that the slave
net device is still valid when the event is being processed. The check is done
under the iboe lock which ensure correctness.

Fixes: a57500903093 ('IB/mlx4: Add port aggregation support')
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/main.c