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: 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>
这个提交包含在:
Alexander Duyck
2015-10-27 16:59:12 -07:00
提交者 Jeff Kirsher
父节点 5682366cec
当前提交 587731e684

查看文件

@@ -1998,8 +1998,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);