]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6f430dfe07c4cdd3618a4f8708f6838b956b6a5
treea0facea5a2aef70d76194d901c52b28dc43df753
parente64ce4f7896b4ed1393a5289d9034ec607ba21ab
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: 1572ad47d31b ('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