]> git.baikalelectronics.ru Git - kernel.git/commit
smsc75xx: fix error handling in suspend failure case
authorSteve Glendinning <steve.glendinning@shawell.net>
Wed, 28 Nov 2012 05:59:48 +0000 (05:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2012 16:17:31 +0000 (11:17 -0500)
commit3395f99827e7acbc1eb2697bd13befe8f438b0e4
tree8eef1e0f1350201d496b0761632a831ee1204c07
parent3da93fe05eeb16a2fcd6fb2e4492d01ac2cb2dbe
smsc75xx: fix error handling in suspend failure case

This patch ensures that if we fail to suspend the LAN7500 device
we call usbnet_resume before returning failure, instead of
leaving the usbnet driver in an unusable state.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c