Files
Moshe Shemesh a2cfb1c664 net/mlx5: Cleanup IRQs in case of unload failure
[ Upstream commit d6b2785cd5 ]

When mlx5_stop_eqs fails to destroy any of the eqs it returns with an error.
In such failure flow the function will return without
releasing all EQs irqs and then pci_free_irq_vectors will fail.
Fix by only warn on destroy EQ failure and continue to release other
EQs and their irqs.

It fixes the following kernel trace:
kernel: kernel BUG at drivers/pci/msi.c:352!
...
...
kernel: Call Trace:
kernel: pci_disable_msix+0xd3/0x100
kernel: pci_free_irq_vectors+0xe/0x20
kernel: mlx5_load_one.isra.17+0x9f5/0xec0 [mlx5_core]

Fixes: e126ba97db ("mlx5: Add driver for Mellanox Connect-IB adapters")
Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-03-03 10:24:28 +01:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-12-29 17:53:47 +01:00
…
2017-12-25 14:26:33 +01:00
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
2018-01-17 09:45:27 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-09-08 18:26:46 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:24 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-09-07 11:53:11 +02:00
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
2017-09-25 08:56:05 -06:00
…
…
…
…
…
…
…
2017-12-20 10:10:18 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2018-02-22 15:42:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2017-08-31 18:50:14 +02:00
…
…
…
…
…
…
…
…
…
…