linux/sound/soc/intel
Amadeusz Sławiński 6ee927f2f0
ASoC: Intel: Skylake: Fix NULL ptr dereference when unloading clk dev
When driver is probed, we iterate over NHLT and check if clk entries are
present. For each such entry we call register_skl_clk and keep the
result in data->clk[].
Currently data->clk is sparsely indexed using NHLT table iterator, while
when freeing we use number of registered entries. Let's just use
data->avail_clk_cnt as index, so it can be reset back in
unregister_src_clk.

Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2019-06-25 15:33:21 +01:00
..
atom ASoC: Intel: use common helpers to detect CPUs 2019-05-30 16:33:26 +01:00
baytrail ASoC: Updates for v5.1 2019-02-08 14:20:32 +01:00
boards ASoC: Intel: sof-rt5682: correct naming for dmic16k 2019-06-19 11:59:11 +01:00
common Merge branch 'asoc-5.2' into asoc-5.3 2019-06-03 18:38:15 +01:00
haswell ASoC: Intel: Haswell: Remove set but not used variable 'stage_type' 2019-04-19 17:00:59 +01:00
skylake ASoC: Intel: Skylake: Fix NULL ptr dereference when unloading clk dev 2019-06-25 15:33:21 +01:00
Kconfig ASoc: fix sound/soc/intel/skylake/slk-ssp-clk.c build error on IA64 2019-05-30 16:34:12 +01:00
Makefile ASoC: Intel: Fix Kconfig with top-level selector 2018-01-08 16:18:48 +00:00