Message ID | 20240806172809.675044-1-forst@pen.gy (mailing list archive) |
---|---|
State | Accepted |
Commit | e5876b088ba03a62124266fa20d00e65533c7269 |
Headers | show |
Series | [net-next,1/5] usbnet: ipheth: race between ipheth_close and error handling | expand |
Hello: This series was applied to netdev/net.git (main) by David S. Miller <davem@davemloft.net>: On Tue, 6 Aug 2024 19:28:05 +0200 you wrote: > From: Oliver Neukum <oneukum@suse.com> > > ipheth_sndbulk_callback() can submit carrier_work > as a part of its error handling. That means that > the driver must make sure that the work is cancelled > after it has made sure that no more URB can terminate > with an error condition. > > [...] Here is the summary with links: - [net-next,1/5] usbnet: ipheth: race between ipheth_close and error handling https://git.kernel.org/netdev/net/c/e5876b088ba0 - [net-next,2/5] usbnet: ipheth: remove extraneous rx URB length check https://git.kernel.org/netdev/net/c/655b46d7a39a - [net-next,3/5] usbnet: ipheth: drop RX URBs with no payload https://git.kernel.org/netdev/net/c/94d7eeb6c0ef - [net-next,4/5] usbnet: ipheth: do not stop RX on failing RX callback https://git.kernel.org/netdev/net/c/74efed51e0a4 - [net-next,5/5] usbnet: ipheth: fix carrier detection in modes 1 and 4 https://git.kernel.org/netdev/net/c/67927a1b255d You are awesome, thank you!
diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c index 687d70cfc556..6eeef10edada 100644 --- a/drivers/net/usb/ipheth.c +++ b/drivers/net/usb/ipheth.c @@ -475,8 +475,8 @@ static int ipheth_close(struct net_device *net) { struct ipheth_device *dev = netdev_priv(net); - cancel_delayed_work_sync(&dev->carrier_work); netif_stop_queue(net); + cancel_delayed_work_sync(&dev->carrier_work); return 0; }