mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
The MOST subsystem has a non-standard registration function which frees the interface on registration failures and on deregistration. This unsurprisingly leads to bugs in the MOST drivers, and a couple of recent changes turned a reference underflow and use-after-free in the USB driver into several double free and a use-after-free on late probe failures. Fixes:723de0f917("staging: most: remove device from interface structure") Fixes:4b12709026("most: usb: Fix use-after-free in hdm_disconnect") Fixes:a8cc9e5fcb("most: usb: hdm_probe: Fix calling put_device() before device initialization") Cc: [email protected] Cc: Christian Gromm <[email protected]> Cc: Victoria Votokina <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>