]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (9743): em28xx: fix oops audio
authorDouglas Schilling Landgraf <dougsland@linuxtv.org>
Mon, 24 Nov 2008 12:51:20 +0000 (09:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Dec 2008 19:09:42 +0000 (17:09 -0200)
Replaced usb_kill_usb for usb_unlink_usb
(wait until urb to fully stop require USB core to put the calling process to sleep).

Oops:
http://www.kerneloops.org/raw.php?rawid=71799&msgid=

Signed-off-by: Douglas Schilling Landgraf <dougsland@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-audio.c

index dfac2e042a52dc5a87d85a1b126928d87f4d03b4..90236bbfe66ad61ea13affcd86c6409aa90f20d6 100644 (file)
@@ -62,7 +62,7 @@ static int em28xx_isoc_audio_deinit(struct em28xx *dev)
 
        dprintk("Stopping isoc\n");
        for (i = 0; i < EM28XX_AUDIO_BUFS; i++) {
-               usb_kill_urb(dev->adev->urb[i]);
+               usb_unlink_urb(dev->adev->urb[i]);
                usb_free_urb(dev->adev->urb[i]);
                dev->adev->urb[i] = NULL;
        }