[PATCH 2/2] Re: 2.6.9-rc1-mm4, sub-serial.c, Badness in usb_unlink_urb

From: Borislav Petkov
Date: Fri Sep 10 2004 - 05:01:11 EST


Remove the deprecated call to usb_unlink_urb in usb-serial.c

Signed-off-by: Borislav Petkov <petkov@xxxxxxxxxxxxxxx>

--- linux-2.6.9-rc1-mm/drivers/usb/serial/usb-serial.c.orig 2004-09-10
11:41:16.000000000 +0200
+++ linux-2.6.9-rc1-mm/drivers/usb/serial/usb-serial.c 2004-09-10
11:41:44.000000000 +0200
@@ -819,15 +819,15 @@ static void port_release(struct device *

dbg ("%s - %s", __FUNCTION__, dev->bus_id);
if (port->read_urb) {
- usb_unlink_urb(port->read_urb);
+ usb_kill_urb(port->read_urb);
usb_free_urb(port->read_urb);
}
if (port->write_urb) {
- usb_unlink_urb(port->write_urb);
+ usb_kill_urb(port->write_urb);
usb_free_urb(port->write_urb);
}
if (port->interrupt_in_urb) {
- usb_unlink_urb(port->interrupt_in_urb);
+ usb_kill_urb(port->interrupt_in_urb);
usb_free_urb(port->interrupt_in_urb);
}
kfree(port->bulk_in_buffer);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/