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)
commiteacdd6c223d699938c56e7c991877433454d3ebc
tree8eef1e0f1350201d496b0761632a831ee1204c07
parentf329ccdc6cd9ef866045af7ccc5fa7d2a9a1f6bb
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
This page took 0.025603 seconds and 5 git commands to generate.