]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commitbdce6612a0562e64acec92bbf6dce567609f5867
tree18f59af1558fc0dde243445246803658493df152
parent6f1efd6c5aa63ddcfe1ffc60ade716f5421766f4
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