usb: usb-serial free urb cleanup
- usb_free_urb() cleanup Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9aac10ff1d
commit
95d4316654
@@ -952,7 +952,6 @@ probe_error:
|
|||||||
port = serial->port[i];
|
port = serial->port[i];
|
||||||
if (!port)
|
if (!port)
|
||||||
continue;
|
continue;
|
||||||
if (port->read_urb)
|
|
||||||
usb_free_urb(port->read_urb);
|
usb_free_urb(port->read_urb);
|
||||||
kfree(port->bulk_in_buffer);
|
kfree(port->bulk_in_buffer);
|
||||||
}
|
}
|
||||||
@@ -960,7 +959,6 @@ probe_error:
|
|||||||
port = serial->port[i];
|
port = serial->port[i];
|
||||||
if (!port)
|
if (!port)
|
||||||
continue;
|
continue;
|
||||||
if (port->write_urb)
|
|
||||||
usb_free_urb(port->write_urb);
|
usb_free_urb(port->write_urb);
|
||||||
kfree(port->bulk_out_buffer);
|
kfree(port->bulk_out_buffer);
|
||||||
}
|
}
|
||||||
@@ -968,7 +966,6 @@ probe_error:
|
|||||||
port = serial->port[i];
|
port = serial->port[i];
|
||||||
if (!port)
|
if (!port)
|
||||||
continue;
|
continue;
|
||||||
if (port->interrupt_in_urb)
|
|
||||||
usb_free_urb(port->interrupt_in_urb);
|
usb_free_urb(port->interrupt_in_urb);
|
||||||
kfree(port->interrupt_in_buffer);
|
kfree(port->interrupt_in_buffer);
|
||||||
}
|
}
|
||||||
@@ -976,7 +973,6 @@ probe_error:
|
|||||||
port = serial->port[i];
|
port = serial->port[i];
|
||||||
if (!port)
|
if (!port)
|
||||||
continue;
|
continue;
|
||||||
if (port->interrupt_out_urb)
|
|
||||||
usb_free_urb(port->interrupt_out_urb);
|
usb_free_urb(port->interrupt_out_urb);
|
||||||
kfree(port->interrupt_out_buffer);
|
kfree(port->interrupt_out_buffer);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user