Skip to content

Commit 313ed2d

Browse files
mawilli1Jeff Kirsher
authored andcommitted
i40evf: propagate interrupt allocation failure
Lower level functions are properly reporting errors, and higher-level functions are correctly responding to errors, but the errors aren't actually getting through. Typically, the middle-manager function seems to want to shield its boss from any bad news. This change fixes a panic if the driver is unable to enable MSI-X or is unable to acquire enough vectors. Change-ID: Ifd5787ce92519a5d97e4b465902db930d97b71a1 Signed-off-by: Mitch Williams <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 2642f02 commit 313ed2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40evf/i40evf_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ static int i40evf_set_interrupt_capability(struct i40evf_adapter *adapter)
11631163
for (vector = 0; vector < v_budget; vector++)
11641164
adapter->msix_entries[vector].entry = vector;
11651165

1166-
i40evf_acquire_msix_vectors(adapter, v_budget);
1166+
err = i40evf_acquire_msix_vectors(adapter, v_budget);
11671167

11681168
out:
11691169
adapter->netdev->real_num_tx_queues = pairs;

0 commit comments

Comments
 (0)