net: asix: Avoid looping when the device is disconnected
authorRobert Foss <robert.foss@collabora.com>
Mon, 29 Aug 2016 13:32:16 +0000 (09:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 04:07:05 +0000 (21:07 -0700)
commit8a46f665833a2085e402bd0827be380f161f09ef
treed15ae39e7a98704fad123b6be04674114fc41592
parentd9fe64e511144c1ee7d7555b4111f09dde9692ef
net: asix: Avoid looping when the device is disconnected

From: Vincent Palatin <vpalatin@chromium.org>

Check the answers from the USB stack and avoid re-sending multiple times
the request if the device has disappeared.

Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
Signed-off-by: Robert Foss <robert.foss@collabora.com>
Tested-by: Robert Foss <robert.foss@collabora.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/asix_common.c
drivers/net/usb/asix_devices.c