Commit d7a467e9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix CHECKER found bug in the empeg.c driver

parent 3f66d6ac
...@@ -222,8 +222,6 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig ...@@ -222,8 +222,6 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig
dbg("%s - port %d", __FUNCTION__, port->number); dbg("%s - port %d", __FUNCTION__, port->number);
usb_serial_debug_data (__FILE__, __FUNCTION__, count, buf);
while (count > 0) { while (count > 0) {
/* try to find a free urb in our list of them */ /* try to find a free urb in our list of them */
...@@ -264,6 +262,8 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig ...@@ -264,6 +262,8 @@ static int empeg_write (struct usb_serial_port *port, int from_user, const unsig
memcpy (urb->transfer_buffer, current_position, transfer_size); memcpy (urb->transfer_buffer, current_position, transfer_size);
} }
usb_serial_debug_data (__FILE__, __FUNCTION__, transfer_size, urb->transfer_buffer);
/* build up our urb */ /* build up our urb */
usb_fill_bulk_urb ( usb_fill_bulk_urb (
urb, urb,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment