Skip to content

Commit

Permalink
[media] em28xx-audio: flush work at .fini
Browse files Browse the repository at this point in the history
As a pending action might be still there at the work
thread, flush it.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 14, 2014
1 parent 4b81972 commit b49eb2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/usb/em28xx/em28xx-audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b49eb2b

Please sign in to comment.