]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
USB: pl2303: fix abuse of interface data
authorJohan Hovold <jhovold@gmail.com>
Wed, 25 Apr 2012 13:56:31 +0000 (15:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 18:37:19 +0000 (11:37 -0700)
commit6f1efd6c5aa63ddcfe1ffc60ade716f5421766f4
tree48386a18f24bd24f6ae857e0a3c1a43960c032c4
parent1c5176692457c3f249559d29a69affad7447b326
USB: pl2303: fix abuse of interface data

Fix abuse of interface data which was used to signal device disconnect.

Use the usb_serial disconnect flag and mutex where appropriate.

Note that tiocmget does not need to check for disconnect as it does not
access the device.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/pl2303.c