* [PATCH 2.6 IrDA] Use kill_urb() in stir4200
@ 2004-12-09 1:52 Jean Tourrilhes
0 siblings, 0 replies; only message in thread
From: Jean Tourrilhes @ 2004-12-09 1:52 UTC (permalink / raw)
To: David S. Miller, Linux kernel mailing list
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@osdl.org>
Signed-off-by: Jean Tourrilhes <jt@hpl.hp.com>
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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-09 1:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-09 1:52 [PATCH 2.6 IrDA] Use kill_urb() in stir4200 Jean Tourrilhes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®