summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/jme.c
diff options
context:
space:
mode:
authorJack Morgenstein2018-08-05 08:19:33 +0200
committerSaeed Mahameed2018-09-06 02:08:33 +0200
commit76d5581c870454be5f1f1a106c57985902e7ea20 (patch)
tree35798364539e16c704cf5f79b588a0d891fc5fe5 /drivers/net/ethernet/jme.c
parentnet: qca_spi: Fix race condition in spi transfers (diff)
downloadkernel-qcow2-linux-76d5581c870454be5f1f1a106c57985902e7ea20.tar.gz
kernel-qcow2-linux-76d5581c870454be5f1f1a106c57985902e7ea20.tar.xz
kernel-qcow2-linux-76d5581c870454be5f1f1a106c57985902e7ea20.zip
net/mlx5: Fix use-after-free in self-healing flow
When the mlx5 health mechanism detects a problem while the driver is in the middle of init_one or remove_one, the driver needs to prevent the health mechanism from scheduling future work; if future work is scheduled, there is a problem with use-after-free: the system WQ tries to run the work item (which has been freed) at the scheduled future time. Prevent this by disabling work item scheduling in the health mechanism when the driver is in the middle of init_one() or remove_one(). Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Reviewed-by: Feras Daoud <ferasda@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/jme.c')
0 files changed, 0 insertions, 0 deletions