aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/intel
diff options
context:
space:
mode:
authorKai Vehmanen <kai.vehmanen@linux.intel.com>2020-01-24 15:36:22 -0600
committerMark Brown <broonie@kernel.org>2020-01-27 17:52:09 +0000
commite6110114d18d330c05fd6de9f31283fd086a5a3a (patch)
treec40211cb7a850ea515cebca5948cf6ac28090d2d /sound/soc/intel
parentASoC: SOF: core: release resources on errors in probe_continue (diff)
downloadlinux-dev-e6110114d18d330c05fd6de9f31283fd086a5a3a.tar.xz
linux-dev-e6110114d18d330c05fd6de9f31283fd086a5a3a.zip
ASoC: SOF: trace: fix unconditional free in trace release
Check if DMA pages were successfully allocated in initialization before calling free. For many types of memory (like sgbufs) the extra free is harmless, but not all backends track allocation state, so add an explicit check. Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com> Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20200124213625.30186-5-pierre-louis.bossart@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel')
0 files changed, 0 insertions, 0 deletions