linux-stable/sound/soc/intel
Ricardo Ribalda 5f78c6ce1f ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete
[ Upstream commit c1c3ba1f78 ]

If dobj->control is not initialized we end up in an OOPs during
skl_tplg_complete:

[   26.553358] BUG: kernel NULL pointer dereference, address:
0000000000000078
[   26.561151] #PF: supervisor read access in kernel mode
[   26.566897] #PF: error_code(0x0000) - not-present page
[   26.572642] PGD 0 P4D 0
[   26.575479] Oops: 0000 [#1] PREEMPT SMP PTI
[   26.580158] CPU: 2 PID: 2082 Comm: udevd Tainted: G         C
5.4.81 #4
[   26.588232] Hardware name: HP Soraka/Soraka, BIOS
Google_Soraka.10431.106.0 12/03/2019
[   26.597082] RIP: 0010:skl_tplg_complete+0x70/0x144 [snd_soc_skl]

Fixes: 2d744ecf2b ("ASoC: Intel: Skylake: Automatic DMIC format configuration according to information from NHL")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Tested-by: Lukasz Majczak <lma@semihalf.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210121171644.131059-1-ribalda@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-02-03 23:28:46 +01:00
..
atom ASoC: Intel: atom: Remove duplicate kconfigs 2020-10-14 20:29:54 +01:00
boards ASoC: Intel: haswell: Add missing pm_ops 2021-01-27 11:54:56 +01:00
catpt Merge Intel catpt DSP fixes into asoc-5.10 2020-11-16 23:29:07 +00:00
common ASoC: Intel: Remove sst_dsp_get_thread_context 2020-10-06 15:12:29 +01:00
keembay ASoC: Intel: KMB: Fix S24_LE configuration 2020-11-16 20:02:40 +00:00
skylake ASoC: Intel: Skylake: skl-topology: Fix OOPs ib skl_tplg_complete 2021-02-03 23:28:46 +01:00
Kconfig ASoC: intel: SND_SOC_INTEL_KEEMBAY should depend on ARCH_KEEMBAY 2020-12-30 11:53:14 +01:00
Makefile ASoC: Intel: Remove baytrail solution 2020-10-06 15:12:21 +01:00