USB: kobil_sct: use port interrupt-out urb
authorJohan Hovold <jhovold@gmail.com>
Tue, 16 Apr 2013 16:01:26 +0000 (18:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 17:05:35 +0000 (10:05 -0700)
commitfeb0a36a523b9fd07275b12f76b344901f884253
tree5c0f75fd2919887b2975a2dfc5190ab1e98c3619
parent9c0343aa6cbbb62b8b829c87b15839f35bdebbf2
USB: kobil_sct: use port interrupt-out urb

Use the port interrupt-out urb rather than abusing the port write_urb
pointer and allocating a new urb at every open (but the first...).

Note that the write_urb abuse would have led to a double free should
there ever be interfaces with a bulk-out endpoint.

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