]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: decrease suspend count if returning -EBUSY for runtime suspend
authorMing Lei <ming.lei@canonical.com>
Tue, 19 Jun 2012 21:15:52 +0000 (21:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2012 00:34:17 +0000 (17:34 -0700)
commit393b8d5e740c8f16343b6da3e3b33c8216a218be
tree3634dc8b320544ca8e567a9899f480172a0f19a3
parent8cc1b7103335d99128f3512e9b0ea3b1c0b53620
usbnet: decrease suspend count if returning -EBUSY for runtime suspend

This patch decreases dev->suspend_count in the -EBUSY failure path
of usbnet_suspend. Without the change, the later runtime suspend
will do nothing except for increasing dev->suspend_count.

Signed-off-by: Ming Lei <ming.lei@canonical.com>
Acked-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c