Use kill_urb() in stir4200
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.
Signed-off-by Stephen Hemminger <[email protected]>
Signed-off-by Jean Tourrilhes <[email protected]>
drivers/net/irda/stir4200.c +2 -2
@@ -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);