]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm_dmaengine: Properly synchronize DMA on shutdown
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 20 Oct 2015 09:46:31 +0000 (11:46 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 16 Nov 2015 02:58:52 +0000 (08:28 +0530)
commitc12fec21c0975d8ef9fe1d8963d44a72f6e9f4b2
tree9045e7f4f133da72296fdf13c9270db34d64906a
parent34a86157bf50a8d70ce49cce04a19893449fbc10
ALSA: pcm_dmaengine: Properly synchronize DMA on shutdown

Use the new dmaengine_synchronize() function to make sure that all complete
callbacks have finished running before the runtime data, which is accessed
in the completed callback, is freed.

This fixes a long standing use-after-free race condition that has been
observed on some systems.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
sound/core/pcm_dmaengine.c