]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 18:04:44 +0000 (19:04 +0100)
commit8be399bc352cda2b474249f0ffb52b78887cf093
tree5e2c7d6eca744ea2f4dfe0a25178f5a328aa6ddf
parentf6d90a21b7742a36419c08f823e3d3bb356b007b
USB: serial: ti_usb_3410_5052: fix port-close races

BugLink: https://bugs.launchpad.net/bugs/1851876
commit 6f1d1dc8d540a9aa6e39b9cb86d3a67bbc1c8d8d upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/serial/ti_usb_3410_5052.c