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)
commit3b9f7d8cdb6db2b6ba78c149dacec3d72591c544
tree8ca72360b184ba56f9d65de6caaef005735eb999
parenteed9a72914a2b2737a0d91b80579f878999574ef
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