From: Mauro Carvalho Chehab Date: Sun, 12 Jan 2014 21:14:05 +0000 (-0300) Subject: [media] em28xx-audio: disconnect before freeing URBs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1fe2e3bff4f862d971207c846e4df61160c0e858;p=linux-beck.git [media] em28xx-audio: disconnect before freeing URBs URBs might be in usage. Disconnect the device before freeing them. Reviewed-by: Frank Schäfer Tested-by: Antti Palosaari Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c index 97d9105e6830..7f762db94b5f 100644 --- a/drivers/media/usb/em28xx/em28xx-audio.c +++ b/drivers/media/usb/em28xx/em28xx-audio.c @@ -956,6 +956,7 @@ static int em28xx_audio_fini(struct em28xx *dev) return 0; } + snd_card_disconnect(dev->adev.sndcard); em28xx_audio_free_urb(dev); if (dev->adev.sndcard) {