]> git.baikalelectronics.ru Git - 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)
commit7c30aca8d2cef06b11d686bb3e84d8a1ccaa9ba0
tree48386a18f24bd24f6ae857e0a3c1a43960c032c4
parent5842be44e7ce0845a8ab54208c25d1feb2bf0e82
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