提交 1fe2e3bf 编写于 作者: M Mauro Carvalho Chehab

[media] em28xx-audio: disconnect before freeing URBs

URBs might be in usage. Disconnect the device before freeing
them.
Reviewed-by: NFrank Schäfer <fschaefer.oss@googlemail.com>
Tested-by: NAntti Palosaari <crope@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册