Commit 587731e6 authored by Alexander Duyck's avatar Alexander Duyck Committed by Jeff Kirsher

fm10k: Cleanup MSI-X interrupts in case of failure

If the q_vector allocation fails we should free the resources associated
with the MSI-X vector table.
Signed-off-by: default avatarAlexander Duyck <aduyck@mirantis.com>
Reviewed-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Tested-by: default avatarKrishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 5682366c
...@@ -1998,8 +1998,10 @@ int fm10k_init_queueing_scheme(struct fm10k_intfc *interface) ...@@ -1998,8 +1998,10 @@ int fm10k_init_queueing_scheme(struct fm10k_intfc *interface)
/* Allocate memory for queues */ /* Allocate memory for queues */
err = fm10k_alloc_q_vectors(interface); err = fm10k_alloc_q_vectors(interface);
if (err) if (err) {
fm10k_reset_msix_capability(interface);
return err; return err;
}
/* Map rings to devices, and map devices to physical queues */ /* Map rings to devices, and map devices to physical queues */
fm10k_assign_rings(interface); fm10k_assign_rings(interface);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment