diff options
author | Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> | 2006-07-11 21:19:25 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-07-13 03:03:25 +0400 |
commit | 166ffccfd4556ac6a777982d193ae145bb0a21e0 (patch) | |
tree | 0312cc2247c9cd37db18cfa3600483c4da070945 /drivers/usb/serial/anydata.c | |
parent | a353678d3136306c1d00f0d2319de1dac8a6b1db (diff) | |
download | linux-166ffccfd4556ac6a777982d193ae145bb0a21e0.tar.xz |
[PATCH] USB: Anydata: Fixes wrong URB callback.
Anydata is using usb_serial_generic_write_bulk_callback() for its
read URB, but it should use usb_serial_generic_read_bulk_callback()
instead (it's a read URB, isn't it?).
Reported by Jon K Hellan <hellan@acm.org>.
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/anydata.c')
-rw-r--r-- | drivers/usb/serial/anydata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/anydata.c b/drivers/usb/serial/anydata.c index 343f6f228220..dadf2838f942 100644 --- a/drivers/usb/serial/anydata.c +++ b/drivers/usb/serial/anydata.c @@ -71,7 +71,7 @@ static int anydata_open(struct usb_serial_port *port, struct file *filp) port->bulk_in_endpointAddress), port->read_urb->transfer_buffer, port->read_urb->transfer_buffer_length, - usb_serial_generic_write_bulk_callback, port); + usb_serial_generic_read_bulk_callback, port); result = usb_submit_urb(port->read_urb, GFP_KERNEL); if (result) dev_err(&port->dev, |