aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-13 09:32:00 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-01-14 11:44:11 -0500
commitb49eb2bd71c39fb69ae9001dac9f07ae6259f9ef (patch)
tree22e406c8a6c75089c8dec1b75b78d7f17c91c29d /drivers/media
parent4b819724984042eff2f14d889b55e906e420fbb3 (diff)
[media] em28xx-audio: flush work at .fini
As a pending action might be still there at the work thread, flush it. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/usb/em28xx/em28xx-audio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-audio.c b/drivers/media/usb/em28xx/em28xx-audio.c
index 74575e0ed41b..1563f71a5ea2 100644
--- a/drivers/media/usb/em28xx/em28xx-audio.c
+++ b/drivers/media/usb/em28xx/em28xx-audio.c
@@ -967,6 +967,8 @@ static int em28xx_audio_fini(struct em28xx *dev)
967 em28xx_info("Closing audio extension"); 967 em28xx_info("Closing audio extension");
968 968
969 snd_card_disconnect(dev->adev.sndcard); 969 snd_card_disconnect(dev->adev.sndcard);
970 flush_work(&dev->wq_trigger);
971
970 em28xx_audio_free_urb(dev); 972 em28xx_audio_free_urb(dev);
971 973
972 if (dev->adev.sndcard) { 974 if (dev->adev.sndcard) {