]> 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)
commit8968ac983402ec777a3d230470b4e95ca2386fcb
tree8ca72360b184ba56f9d65de6caaef005735eb999
parentbfa1f96751fb7c8fe6dedf9150bdbfcb76c130f8
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