Skip to content

Commit 134bbe7

Browse files
tlfalcondavem330
authored andcommitted
ibmvnic: Fix non-fatal firmware error reset
It is not necessary to disable interrupt lines here during a reset to handle a non-fatal firmware error. Move that call within the code block that handles the other cases that do require interrupts to be disabled and re-enabled. Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 4cf2ddf commit 134bbe7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,9 +1822,8 @@ static int do_reset(struct ibmvnic_adapter *adapter,
18221822
if (rc)
18231823
return rc;
18241824
}
1825+
ibmvnic_disable_irqs(adapter);
18251826
}
1826-
1827-
ibmvnic_disable_irqs(adapter);
18281827
adapter->state = VNIC_CLOSED;
18291828

18301829
if (reset_state == VNIC_CLOSED)

0 commit comments

Comments
 (0)