From: Mauro Carvalho Chehab Date: Mon, 13 Jan 2014 14:32:00 +0000 (-0300) Subject: [media] em28xx-audio: flush work at .fini X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b49eb2bd71c39fb69ae9001dac9f07ae6259f9ef;p=openwrt%2Fstaging%2Fblogic.git [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 --- 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) 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) {