]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: check RTL8152_UNPLUG and netif_running before autoresume
authorhayeswang <hayeswang@realtek.com>
Wed, 12 Nov 2014 02:05:05 +0000 (10:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2014 19:49:08 +0000 (14:49 -0500)
commit32a5d7c797f5c7c8bdb8953b3dc84a29b41c2c50
tree0ce6d6b85118b8a9c602560099d12437c50dff19
parent721ee3e535521381ba7a4931978a7d01916d8081
r8152: check RTL8152_UNPLUG and netif_running before autoresume

If the device is unplugged or !netif_running(), the workqueue
doesn't need to wake the device, and could return directly.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c