[PATCH 2.6 IrDA] Use kill_urb() in stir4200
From: Jean Tourrilhes
Date: Wed Dec 08 2004 - 20:57:04 EST
irXXX_stir4200-kill-1.diff :
~~~~~~~~~~~~~~~~~~~~~~~~~~
<Original patch from Stephen Hemminger>
USB changed behaviour of unlink_urb so that it gives warning and backtrace when
being used synchronously. The correct current behaviour is to us kill_urb
in that case.
Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
Signed-off-by: Jean Tourrilhes <jt@xxxxxxxxxx>
diff -Nru a/drivers/net/irda/stir4200.c b/drivers/net/irda/stir4200.c
--- a/drivers/net/irda/stir4200.c 2004-11-29 10:11:58 -08:00
+++ b/drivers/net/irda/stir4200.c 2004-11-29 10:11:58 -08:00
@@ -705,7 +705,7 @@
static void receive_stop(struct stir_cb *stir)
{
stir->receiving = 0;
- usb_unlink_urb(stir->rx_urb);
+ usb_kill_urb(stir->rx_urb);
if (stir->rx_buff.in_frame)
stir->stats.collisions++;
@@ -974,7 +974,7 @@
kfree(stir->fifo_status);
/* Mop up receive urb's */
- usb_unlink_urb(stir->rx_urb);
+ usb_kill_urb(stir->rx_urb);
kfree(stir->io_buf);
usb_free_urb(stir->rx_urb);
-
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/