usbnet: clear OPEN flag in failure path
authorMing Lei <ming.lei@canonical.com>
Tue, 19 Jun 2012 21:15:51 +0000 (21:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2012 00:34:17 +0000 (17:34 -0700)
commitfb13c47b8e5ce707268bd38cfd082da377eac4b7
treed35d5ba0a22e10fb6cf528eeaa8eb45a06eddd14
parentb9f90eb2740203ff2592efe640409ad48335d1c2
usbnet: clear OPEN flag in failure path

Without clearing OPEN flag in failure path, runtime or system resume
may submit interrupt/rx URB and start tx queue mistakenly on a
interface in DOWN state.

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