Revert "usbnet: ipheth: race between ipheth_close and error handling"

This reverts commit 806a25636b.
This commit is contained in:
Ksawlii 2024-11-24 00:23:39 +01:00
parent 367c3c0607
commit 54b7a02bce

View file

@ -353,8 +353,8 @@ static int ipheth_close(struct net_device *net)
{ {
struct ipheth_device *dev = netdev_priv(net); struct ipheth_device *dev = netdev_priv(net);
netif_stop_queue(net);
cancel_delayed_work_sync(&dev->carrier_work); cancel_delayed_work_sync(&dev->carrier_work);
netif_stop_queue(net);
return 0; return 0;
} }