Commit e0ee2ce5 authored by Alexander Duyck's avatar Alexander Duyck Committed by Greg Kroah-Hartman

fm10k: Cleanup MSI-X interrupts in case of failure

[ Upstream commit 587731e6 ]

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>
Signed-off-by: default avatarSasha Levin <alexander.levin@verizon.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6628b263
......@@ -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);
......
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