Re: [PATCH 4/7] em28xx-audio: disconnect before freeing URBs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 13.01.2014 00:00, Mauro Carvalho Chehab wrote:
URBs might be in usage. Disconnect the device before freeing
them.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@xxxxxxxxxxx>
---
  drivers/media/usb/em28xx/em28xx-audio.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c
index 8e959dae8358..cdc2fcf3e05e 100644
--- a/drivers/media/usb/em28xx/em28xx-audio.c
+++ b/drivers/media/usb/em28xx/em28xx-audio.c
@@ -958,6 +958,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) {

Reviewed-by: Frank Schäfer <fschaefer.oss@xxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux