mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
USB: serial: fix potential use-after-free after failed probe
commit07fdfc5e9fupstream. Fix return value in probe error path, which could end up returning success (0) on errors. This could in turn lead to use-after-free or double free (e.g. in port_remove) when the port device is removed. Fixes:c706ebdfc8("USB: usb-serial: call port_probe and port_remove at the right times") Signed-off-by: Johan Hovold <johan@kernel.org> Acked-by: Greg Kroah-Hartman <greg@kroah.com> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
parent
7f4b3d11c8
commit
277385e00d
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue