]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: vhci-hcd: Do not drop references before new references are gained
authorOliver Neukum <oneukum@suse.com>
Tue, 9 Jul 2024 11:38:41 +0000 (13:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2024 08:39:04 +0000 (10:39 +0200)
commitafdcfd3d6fcdeca2735ca8d994c5f2d24a368f0a
tree46fbee83715e88c5ccaad27eece122eeced95726
parent76a7bfc445b8e9893c091e24ccfd4f51dfdc0a70
usb: vhci-hcd: Do not drop references before new references are gained

At a few places the driver carries stale pointers
to references that can still be used. Make sure that does not happen.
This strictly speaking closes ZDI-CAN-22273, though there may be
similar races in the driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Cc: stable <stable@kernel.org>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20240709113851.14691-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_hcd.c