]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
USB: serial: ti_usb_3410_5052: fix port-close races
authorJohan Hovold <johan@kernel.org>
Fri, 11 Oct 2019 09:57:35 +0000 (11:57 +0200)
committerJohan Hovold <johan@kernel.org>
Wed, 16 Oct 2019 08:29:11 +0000 (10:29 +0200)
commit6f1d1dc8d540a9aa6e39b9cb86d3a67bbc1c8d8d
treee8b49edb45f79e4214f2555d8329604d5e921662
parent4f5cafb5cb8471e54afdc9054d973535614f7675
USB: serial: ti_usb_3410_5052: fix port-close races

Fix races between closing a port and opening or closing another port on
the same device which could lead to a failure to start or stop the
shared interrupt URB. The latter could potentially cause a
use-after-free or worse in the completion handler on driver unbind.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ti_usb_3410_5052.c