]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_en: Fix panic during reboot
authorEugenia Emantayev <eugenia@mellanox.com>
Thu, 27 Oct 2016 13:27:18 +0000 (16:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 20:23:48 +0000 (16:23 -0400)
commitcc7fdd277b328760c415b586fd9c16574afd5e4a
tree69218daecbae4e11931035cf949e1532f3d340f1
parentcf7cbd3561d7a54ef555ea8ef540aeb543700e46
net/mlx4_en: Fix panic during reboot

Fix a kernel panic that occurs as a result of an asynchronous event
handled in roce_gid_mgmt:
mlx4_en_get_drvinfo is called and accesses freed resources.

This happens in a shutdown flow only, since pci device is destroyed
while netdevice is still alive.

Fixes: eebe24d1aff7 ("mlx4_en: Add driver for Mellanox ConnectX 10GbE NIC")
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c