Commit 1fe2e3bf authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[media] em28xx-audio: disconnect before freeing URBs

URBs might be in usage. Disconnect the device before freeing
them.
Reviewed-by: default avatarFrank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: default avatarAntti Palosaari <crope@iki.fi>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 0cd03a0c
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment