]> git.karo-electronics.de Git - linux-beck.git/commit
USB: opticon: fix abuse of interface data
authorJohan Hovold <jhovold@gmail.com>
Wed, 25 Apr 2012 13:56:29 +0000 (15:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 18:37:18 +0000 (11:37 -0700)
commit81d5a6729018ef18dcc1a555144ce91eb3c9abc4
tree92e3fa4fa694477ff8a6210fb2bc590959e45e56
parent33f7a67e477f780b82ef36ce358f6d5290d6a9b2
USB: opticon: 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/opticon.c