diff options
author | Oliver Neukum <oliver@neukum.org> | 2009-04-17 01:40:19 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-17 01:40:19 -0700 |
commit | 9dd014eb9804f19d6230c3cbc10fa25f5416bda7 (patch) | |
tree | 87f15f1cbb7cf1a2295ae5583a8856c6e0c4c38d /drivers/net | |
parent | 62bcaa13039538c7f794b0cfcbc26e0313e7fcd5 (diff) |
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')
-rw-r--r-- | drivers/net/usb/pegasus.c | 1 |
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: |