mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 16:41:58 +00:00
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>
This commit is contained in:
parent
62bcaa1303
commit
9dd014eb98
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user