mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-03 17:51:57 +09:00
fm10k: Cleanup MSI-X interrupts in case of failure
[ Upstream commit 587731e684 ]
If the q_vector allocation fails we should free the resources associated
with the MSI-X vector table.
Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6628b26348
commit
e0ee2ce518
@@ -1970,8 +1970,10 @@ int fm10k_init_queueing_scheme(struct fm10k_intfc *interface)
|
||||
|
||||
/* Allocate memory for queues */
|
||||
err = fm10k_alloc_q_vectors(interface);
|
||||
if (err)
|
||||
if (err) {
|
||||
fm10k_reset_msix_capability(interface);
|
||||
return err;
|
||||
}
|
||||
|
||||
/* Map rings to devices, and map devices to physical queues */
|
||||
fm10k_assign_rings(interface);
|
||||
|
||||
Reference in New Issue
Block a user