Skip to contentSkip to conversation

handle EPERM in pegasus

PATCH Applied Oliver Neukum 2 participants 2 messages Apr 16, 2009 – Apr 17, 2009

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 handle EPERM in pegasus

EPERM means that disconnect() is runnung. It should be treated like ENODEV

---

commit 7f5315f57f7f9d0834f23a3ad5b267c96a4a24c7

Author: Oliver Neukum <[email protected]>
Date:   Tue Apr 7 09:48:24 2009 +0200

handle disconnect error code in pegasus correctly

drivers/net/usb/pegasus.c +0 -0
index a8228d8..2138535 100644
@@ -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: