summaryrefslogtreecommitdiff
path: root/drivers/net/usb/pegasus.c
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2009-04-17 12:40:19 +0400
committerDavid S. Miller <davem@davemloft.net>2009-04-17 12:40:19 +0400
commit9dd014eb9804f19d6230c3cbc10fa25f5416bda7 (patch)
tree87f15f1cbb7cf1a2295ae5583a8856c6e0c4c38d /drivers/net/usb/pegasus.c
parent62bcaa13039538c7f794b0cfcbc26e0313e7fcd5 (diff)
downloadlinux-9dd014eb9804f19d6230c3cbc10fa25f5416bda7.tar.xz
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/pegasus.c')
-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: