Skip to contentSkip to conversation

Use kill_urb() in stir4200

PATCH New Jean Tourrilhes 1 participant 1 message Dec 9, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Use kill_urb() in stir4200

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.

drivers/net/irda/stir4200.c +2 -2
diff -Nru a/drivers/net/irda/stir4200.c b/drivers/net/irda/stir4200.c
@@ -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);