USB: adutux: fix debugging
authorOliver Neukum <oneukum@suse.com>
Thu, 17 Sep 2020 11:26:00 +0000 (13:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 09:23:53 +0000 (10:23 +0100)
[ Upstream commit c56150c1bc8da5524831b1dac2eec3c67b89f587 ]

Handling for removal of the controller was missing at one place.
Add it.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20200917112600.26508-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/misc/adutux.c

index 7fb0590187d409a0b8405a9b6550756f226dfa14..a1bc516be154de88dc197a76e6f9b89678c4adf9 100644 (file)
@@ -210,6 +210,7 @@ static void adu_interrupt_out_callback(struct urb *urb)
 
        if (status != 0) {
                if ((status != -ENOENT) &&
+                   (status != -ESHUTDOWN) &&
                    (status != -ECONNRESET)) {
                        dev_dbg(&dev->udev->dev,
                                "%s :nonzero status received: %d\n", __func__,