linux-stable/sound/soc
Ajit Kumar Pandey c61711c1c9
ASoC: SOF: Fix NULL pointer exception in sof_pci_probe callback
We are accessing "desc->ops" in sof_pci_probe without checking "desc"
pointer. This results in NULL pointer exception if pci_id->driver_data
i.e desc pointer isn't defined in sof device probe:

BUG: kernel NULL pointer dereference, address: 0000000000000060
PGD 0 P4D 0
Oops: 0000 [#1] PREEMPT SMP NOPTI
RIP: 0010:sof_pci_probe+0x1e/0x17f [snd_sof_pci]
Code: Unable to access opcode bytes at RIP 0xffffffffc043dff4.
RSP: 0018:ffffac4b03b9b8d8 EFLAGS: 00010246

Add NULL pointer check for sof_dev_desc pointer to avoid such exception.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220426183357.102155-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-27 14:15:21 +01:00
..
adi
amd ASoC: Updates for v5.18 2022-03-21 16:19:21 +01:00
atmel ASoC: atmel: mchp-pdmc: set prepare_slave_config 2022-04-25 13:58:17 +01:00
au1x
bcm ASoC: bcm: Use platform_get_irq() to get the interrupt 2021-12-21 18:05:43 +00:00
cirrus
codecs ASoC: max98090: Generate notifications on changes for custom control 2022-04-25 13:58:16 +01:00
dwc ASoC: dwc-i2s: Handle errors for clk_enable 2022-03-02 13:45:24 +00:00
fsl ASoC: fsl_sai: fix 1:1 bclk:mclk ratio support 2022-04-06 15:50:05 +01:00
generic ASoC: simple-card-utils: fix sysclk shutdown 2022-04-20 14:25:11 +01:00
hisilicon
img ASoC: img: Use dev_err_probe() helper 2021-12-20 12:47:16 +00:00
intel Make headphone work on Huawei Matebook D15 2022-04-08 12:08:37 +01:00
jz4740
kirkwood
mediatek ASoC: mediatek: mt8195: Fix error handling in mt8195_mt6359_rt1019_rt5682_dev_probe 2022-03-16 16:39:25 +00:00
meson ASoC: meson: axg-card: Fix nonatomic links 2022-04-21 18:25:15 +01:00
mxs ASoC: mxs: Fix error handling in mxs_sgtl5000_probe 2022-03-08 13:41:15 +00:00
pxa ARM: pxa: remove Intel Imote2 and Stargate 2 boards 2022-02-28 15:08:14 +01:00
qcom ASoC: Updates for v5.18 2022-03-21 16:19:21 +01:00
rockchip ASoC: rockchip: i2s_tdm: Fixup config for SND_SOC_DAIFMT_DSP_A/B 2022-03-23 12:17:52 +00:00
samsung ASoC: samsung: i2s: check the return value of kstrdup() 2022-03-16 16:39:17 +00:00
sh ASoC: fsi: Add check for clk_enable 2022-03-07 13:14:56 +00:00
sof ASoC: SOF: Fix NULL pointer exception in sof_pci_probe callback 2022-04-27 14:15:21 +01:00
spear
sprd
sti ASoC: sti: Fix deadlock via snd_pcm_stop_xrun() call 2022-03-16 16:39:28 +00:00
stm ASoC: stm: Use dev_err_probe() helper 2021-12-20 12:47:23 +00:00
sunxi ASoC: sun4i-i2s: Add support for the R329/D1 variant 2022-02-03 11:30:57 +00:00
tegra ASoC: tegra20: spdif: make const array rates static 2022-02-15 12:52:44 +00:00
ti ASoC: ti: Fix spelling mistake "cant" -> "can't" 2022-03-16 16:39:21 +00:00
uniphier ASoC: uniphier: drop selecting non-existing SND_SOC_UNIPHIER_AIO_DMA 2021-11-25 11:54:30 +00:00
ux500
xilinx ASoC: xilinx: xlnx_i2s: Handle sysclk setting 2022-01-24 19:45:38 +00:00
xtensa
Kconfig
Makefile
soc-ac97.c
soc-acpi.c ALSA: Replace acpi_bus_get_device() 2022-02-01 08:08:08 +01:00
soc-card.c
soc-component.c ASoC: soc-component: add snd_soc_pcm_component_delay() 2021-11-29 12:19:41 +00:00
soc-compress.c ASoC: soc-compress: Change the check for codec_dai 2022-03-14 08:29:11 +00:00
soc-core.c ASoC: soc-core: add debugfs_prefix member to snd_soc_component_driver 2022-04-05 19:14:20 +01:00
soc-dai.c ASoC: soc-dai: update snd_soc_dai_delay() to snd_soc_pcm_dai_delay() 2021-11-29 12:19:40 +00:00
soc-dapm.c ASoC: soc-dapm: fix two incorrect uses of list iterator 2022-04-05 10:24:44 +01:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: dmaengine: Restore NULL prepare_slave_config() callback 2022-04-25 13:58:18 +01:00
soc-jack.c
soc-link.c
soc-ops.c ASoC: ops: Validate input values in snd_soc_put_volsw_range() 2022-04-26 15:13:36 +01:00
soc-pcm.c ASoC: soc-pcm: use GFP_KERNEL when the code is sleepable 2022-04-04 14:25:39 +01:00
soc-topology-test.c
soc-topology.c ASoC: topology: Correct error handling in soc_tplg_dapm_widget_create() 2022-04-04 14:25:36 +01:00
soc-utils.c