]> 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)
commitc26e81509651655e91fe430122ab06d5dca7eafa
treea0facea5a2aef70d76194d901c52b28dc43df753
parent9f11f89bff5fd964a16edd381b897c6a74f35393
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: a835630e56ff ('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