Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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) {