Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Zhao <yuzhao@google.com>2018-09-12 00:14:04 +0300
committerMark Brown <broonie@kernel.org>2018-09-12 13:21:55 +0300
commitb61749a89f826eb61fc59794d9e4697bd246eb61 (patch)
tree2e31d960f7f106143d27a3819c230ccc5f07e05d /sound/soc/codecs/rt5514-spi.c
parent542cedec53c9e8b73f3f05bf8468823598c50489 (diff)
sound: enable interrupt after dma buffer initialization
In snd_hdac_bus_init_chip(), we enable interrupt before snd_hdac_bus_init_cmd_io() initializing dma buffers. If irq has been acquired and irq handler uses the dma buffer, kernel may crash when interrupt comes in. Fix the problem by postponing enabling irq after dma buffer initialization. And warn once on null dma buffer pointer during the initialization. Reviewed-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Yu Zhao <yuzhao@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5514-spi.c')
0 files changed, 0 insertions, 0 deletions