Skip to content

Commit 6927839

Browse files
Shannon NelsonJeff Kirsher
authored andcommitted
i40e: Remove MSIx only if created
When cleaning up the interrupt handling, clean up the IRQs only if we actually got them set up. There are a couple of error recovery paths that were violating this and causing the kernel a bit of indigestion. Signed-off-by: Shannon Nelson <[email protected]> Reviewed-by: Williams, Mitch A <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 6182902 commit 6927839

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40e/i40e_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4164,7 +4164,7 @@ static void i40e_clear_interrupt_scheme(struct i40e_pf *pf)
41644164
int i;
41654165

41664166
i40e_stop_misc_vector(pf);
4167-
if (pf->flags & I40E_FLAG_MSIX_ENABLED) {
4167+
if (pf->flags & I40E_FLAG_MSIX_ENABLED && pf->msix_entries) {
41684168
synchronize_irq(pf->msix_entries[0].vector);
41694169
free_irq(pf->msix_entries[0].vector, pf);
41704170
}

0 commit comments

Comments
 (0)