]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: fix error handling in suspend failure case
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 30 Nov 2012 05:55:49 +0000 (05:55 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Nov 2012 17:27:20 +0000 (12:27 -0500)
commit27862f0a8a93096dbd1d3cf778fcf587173c6647
tree8ca72360b184ba56f9d65de6caaef005735eb999
parent51c1c67712b90aaedad217ea3dcb8c6db1796167
smsc95xx: fix error handling in suspend failure case

This patch ensures that if we fail to suspend the LAN9500 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/smsc95xx.c