usbnet: smsc95xx: fix suspend failure
authorMing Lei <ming.lei@canonical.com>
Fri, 22 Feb 2013 03:05:03 +0000 (03:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Mar 2013 18:26:35 +0000 (11:26 -0700)
commit53be86cb15c4a7b1a0f5bbfa0c566c168891ae52
treeecc5aa135a0f85727143bdad17dc4c87f8c410dd
parentd79ba09797140b624e8b0e71e67c5afc6bca797d
usbnet: smsc95xx: fix suspend failure

commit 7643721471117d5f62ca36f328d3dc8d84af4402 upstream.

The three below functions:

smsc95xx_enter_suspend0()
smsc95xx_enter_suspend1()
smsc95xx_enter_suspend2()

return > 0 in case of success, so they will cause smsc95xx_suspend()
to return > 0 and cause suspend failure.

The bug is introduced in commit 3b9f7d(smsc95xx: fix error handling
in suspend failure case).

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Cc: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/smsc95xx.c