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

Commit b49eb2bd authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

[media] em28xx-audio: flush work at .fini



As a pending action might be still there at the work
thread, flush it.

Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent 4b819724
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -967,6 +967,8 @@ static int em28xx_audio_fini(struct em28xx *dev)
	em28xx_info("Closing audio extension");

	snd_card_disconnect(dev->adev.sndcard);
	flush_work(&dev->wq_trigger);

	em28xx_audio_free_urb(dev);

	if (dev->adev.sndcard) {