]> git.itanic.dy.fi Git - linux-stable/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 14 Jul 2019 06:09:39 +0000 (08:09 +0200)
commit78e1374d96c50d69f8e8acbd06a9067c2f21b2f8
tree24fec6ec7c216bf440a4426fba0eea8a27d2988f
parentfe218cfad2fb8677a1becc90ecc98c9376dffa65
ibmvnic: Do not close unopened driver during reset

[ Upstream commit 1f94608b0ce141be5286dde31270590bdf35b86a ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c