Commit 9dd014eb authored by Oliver Neukum's avatar Oliver Neukum Committed by David S. Miller

pegasus: Handle disconnect error code correctly.

EPERM means that disconnect() is runnung. It should be treated like
ENODEV
Signed-off-by: default avatarOliver Neukum <oliver@neukum.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 62bcaa13
...@@ -899,6 +899,7 @@ static int pegasus_start_xmit(struct sk_buff *skb, struct net_device *net) ...@@ -899,6 +899,7 @@ static int pegasus_start_xmit(struct sk_buff *skb, struct net_device *net)
/* cleanup should already have been scheduled */ /* cleanup should already have been scheduled */
break; break;
case -ENODEV: /* disconnect() upcoming */ case -ENODEV: /* disconnect() upcoming */
case -EPERM:
netif_device_detach(pegasus->net); netif_device_detach(pegasus->net);
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment