OSDN Git Service

netvsc: check error return when restoring channels and mtu
authorstephen hemminger <stephen@networkplumber.org>
Thu, 10 Aug 2017 00:46:06 +0000 (17:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Aug 2017 20:59:42 +0000 (13:59 -0700)
commit68d715f68541d58033199eea80991394a6886eb7
treed70e60771d71d6db341d537d581d8edd2c6b3d14
parent16ba3266006be10dc7ec25dd1442f74cef89cb95
netvsc: check error return when restoring channels and mtu

If setting new values fails, and the attempt to restore original
settings fails. Then log an error and leave device down.
This should never happen, but if it does don't go down in flames.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c