net/mlx5: Cancel recovery work in remove flow
authorDaniel Jurgens <danielj@mellanox.com>
Wed, 28 Dec 2016 12:58:33 +0000 (14:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Dec 2016 19:36:50 +0000 (14:36 -0500)
commit689a248df83b6032edc57e86267b4e5cc8d7174e
tree973f7775bcd538554b67c42cbb646a531741564b
parent883371c453b937f9eb581fb4915210865982736f
net/mlx5: Cancel recovery work in remove flow

If there is pending delayed work for health recovery it must be canceled
if the device is being unloaded.

Fixes: 05ac2c0b7438 ("net/mlx5: Fix race between PCI error handlers and health work")
Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/main.c