mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 00:20:06 +00:00
usb: io_edgeport kill urb cleanup
- usb_kill_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:
parent
c69694b779
commit
9a25f44f91
@ -1038,9 +1038,7 @@ static void edge_close (struct usb_serial_port *port, struct file * filp)
|
||||
edge_port->open = FALSE;
|
||||
edge_port->openPending = FALSE;
|
||||
|
||||
if (edge_port->write_urb) {
|
||||
usb_kill_urb(edge_port->write_urb);
|
||||
}
|
||||
usb_kill_urb(edge_port->write_urb);
|
||||
|
||||
if (edge_port->write_urb) {
|
||||
/* if this urb had a transfer buffer already (old transfer) free it */
|
||||
|
Loading…
x
Reference in New Issue
Block a user