]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: usb: usbnet: fix race in probe failure
authorOliver Neukum <oneukum@suse.com>
Thu, 10 Oct 2024 13:19:14 +0000 (15:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Nov 2024 00:52:33 +0000 (01:52 +0100)
commit213d1ff6c491704d601a6a509573fe7d44501a4d
tree87d2fe5e6304d9647613129aaba85d75384f1b80
parentb340df7458673c9ec5f3fce6c04ac13ec27aa590
net: usb: usbnet: fix race in probe failure

[ Upstream commit b62f4c186c70aa235fef2da68d07325d85ca3ade ]

The same bug as in the disconnect code path also exists
in the case of a failure late during the probe process.
The flag must also be set.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Link: https://patch.msgid.link/20241010131934.1499695-1-oneukum@suse.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/usb/usbnet.c