summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2009-04-17 10:40:19 +0200
committerDavid S. Miller <davem@davemloft.net>2009-04-17 10:40:19 +0200
commit9dd014eb9804f19d6230c3cbc10fa25f5416bda7 (patch)
tree87f15f1cbb7cf1a2295ae5583a8856c6e0c4c38d /drivers/net/usb
parentcan: Network Drop Monitor: Make use of consume_skb() in af_can.c (diff)
downloadlinux-9dd014eb9804f19d6230c3cbc10fa25f5416bda7.tar.xz
linux-9dd014eb9804f19d6230c3cbc10fa25f5416bda7.zip
pegasus: Handle disconnect error code correctly.
EPERM means that disconnect() is runnung. It should be treated like ENODEV Signed-off-by: Oliver Neukum <oliver@neukum.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/pegasus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/pegasus.c b/drivers/net/usb/pegasus.c
index a8228d87c8cf..2138535f2339 100644
--- a/drivers/net/usb/pegasus.c
+++ b/drivers/net/usb/pegasus.c
@@ -899,6 +899,7 @@ static int pegasus_start_xmit(struct sk_buff *skb, struct net_device *net)
/* cleanup should already have been scheduled */
break;
case -ENODEV: /* disconnect() upcoming */
+ case -EPERM:
netif_device_detach(pegasus->net);
break;
default: