summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx5/core/health.c
diff options
context:
space:
mode:
authorMohamad Haj Yahia2016-06-30 16:34:38 +0200
committerDavid S. Miller2016-07-01 12:12:02 +0200
commit0d834442cc247c7b3f3bd6019512ae03e96dd99a (patch)
tree9634c0eadc455735f435b188a30fd1aaf9bbf174 /drivers/net/ethernet/mellanox/mlx5/core/health.c
parentbonding: prevent out of bound accesses (diff)
downloadkernel-qcow2-linux-0d834442cc247c7b3f3bd6019512ae03e96dd99a.tar.gz
kernel-qcow2-linux-0d834442cc247c7b3f3bd6019512ae03e96dd99a.tar.xz
kernel-qcow2-linux-0d834442cc247c7b3f3bd6019512ae03e96dd99a.zip
net/mlx5: Fix teardown errors that happen in pci error handler
In case of internal error state we will simulate the commands status through the return value translation function, but we need to simulate all the teardown fw commands as successful so we will not have fw command failure prints. This also fix memory leaks that happen because we skip teardown stages due to failed fw commands. Fixes: 89d44f0a6c73 ('net/mlx5_core: Add pci error handlers to mlx5_core driver') Signed-off-by: Mohamad Haj Yahia <mohamad@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/health.c')
0 files changed, 0 insertions, 0 deletions