]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: fix interface data use
authorJohan Hovold <jhovold@gmail.com>
Wed, 25 Apr 2012 13:56:32 +0000 (15:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Apr 2012 18:37:19 +0000 (11:37 -0700)
commitcf01e8241c811ebe9698878cc69cec22b8188385
tree18f59af1558fc0dde243445246803658493df152
parent6f079649dd44c43c8eb0f5b178c351921bd9cf23
USB: serial: fix interface data use

The interface data should not be used as a flag to signal disconnect.

Now that all serial drivers use the usb_serial disconnect flag and
mutex, we can set the interface data prior to registering the ports and
there's no need to clear it at disconnect.

This should hopefully also make it more clear that the interface data is
not a flag, which could prevent future misuse.

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