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

From: Borislav Petkov
Date: Fri Sep 10 2004 - 04:57:31 EST


remove the deprecated call to usb_unlink_urb.

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

--- linux-2.6.9-rc1-mm/drivers/usb/serial/visor.c.orig 2004-09-10
11:35:11.000000000 +0200
+++ linux-2.6.9-rc1-mm/drivers/usb/serial/visor.c 2004-09-10
11:35:55.000000000 +0200
@@ -446,9 +446,9 @@ static void visor_close (struct usb_seri
dbg("%s - port %d", __FUNCTION__, port->number);

/* shutdown our urbs */
- usb_unlink_urb (port->read_urb);
+ usb_kill_urb (port->read_urb);
if (port->interrupt_in_urb)
- usb_unlink_urb (port->interrupt_in_urb);
+ usb_kill_urb (port->interrupt_in_urb);

/* Try to send shutdown message, if the device is gone, this will just fail.
*/
transfer_buffer = kmalloc (0x12, GFP_KERNEL);
-
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/