ibmvnic: Do not close unopened driver during reset
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 7 Jun 2019 21:03:53 +0000 (16:03 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jun 2019 02:51:28 +0000 (19:51 -0700)
commit1f94608b0ce141be5286dde31270590bdf35b86a
tree56b1db1a928fdd1aa498fecbeadfbf2548c93ecb
parent4172eadb086407ac571f5e5be640b07b1a66ae87
ibmvnic: Do not close unopened driver during reset

Check driver state before halting it during a reset. If the driver is
not running, do nothing. Otherwise, a request to deactivate a down link
can cause an error and the reset will fail.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c