umber-kernel/sound/soc/sof/intel
Ranjani Sridharan 42068f7dd4 ASoC: SOF: Intel: hda: Fix NULL pointer dereference
[ Upstream commit 16c589567a956d46a7c1363af3f64de3d420af20 ]

If there's a mismatch between the DAI links in the machine driver and
the topology, it is possible that the playback/capture widget is not
set, especially in the case of loopback capture for echo reference
where we use the dummy DAI link. Return the error when the widget is not
set to avoid a null pointer dereference like below when the topology is
broken.

RIP: 0010:hda_dai_get_ops.isra.0+0x14/0xa0 [snd_sof_intel_hda_common]

Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Mateusz Redzynia <mateuszx.redzynia@intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://patch.msgid.link/20260204081833.16630-10-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-03-04 07:20:08 -05:00
..
Kconfig ASoC: SOF: Intel: hda-sdw-bpt: fix SND_SOF_SOF_HDA_SDW_BPT dependencies 2025-08-06 12:02:32 +01:00
Makefile soundwire updates for 6.15 2025-04-01 12:43:13 -07:00
apl.c
atom.c ASoC: SOF: Intel: Use str_yes_no() helper in atom_dump() 2025-01-06 13:08:33 +00:00
atom.h
bdw.c ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:55 +00:00
byt.c ASoC: SOF: acpi: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:55 +00:00
cnl.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ext_manifest.h
hda-bus.c ASoC: SOF: Intel: hda-bus: Use PIO mode on ACE2+ platforms 2025-05-09 18:20:14 +09:00
hda-codec.c ASoC: SOF: Intel: split codec mask detect and programming UNSOL 2025-08-29 10:50:36 +02:00
hda-common-ops.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-ctrl.c ASoC: SOF: Intel: only detect codecs when HDA DSP probe 2025-08-29 10:50:37 +02:00
hda-dai-ops.c
hda-dai.c ASoC: SOF: Intel: hda: Fix NULL pointer dereference 2026-03-04 07:20:08 -05:00
hda-dsp.c ASoC: SOF: Intel: only detect codecs when HDA DSP probe 2025-08-29 10:50:37 +02:00
hda-ipc.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda-ipc.h
hda-loader-skl.c
hda-loader.c ASoC: SOF: ipc4/Intel: Add support for library restore firmware functionality 2025-06-19 13:19:35 +01:00
hda-mlink.c ASoC: SOF: Intel: hda-mlink: Add support for mic privacy in VS SHIM registers 2025-03-08 16:06:41 +00:00
hda-pcm.c ASoC: SOF: Intel: hda-pcm: Place the constraint on period time instead of buffer time 2025-10-02 15:03:32 +01:00
hda-probes.c ALSA: compress_offload: Add 64-bit safe timestamp infrastructure 2025-09-08 09:33:24 +02:00
hda-sdw-bpt.c ASoC: Intel: hda-sdw-bpt: set persistent_buffer false 2025-09-15 12:47:08 +01:00
hda-stream.c ASoC: SOF: Intel: Read the LLP via the associated Link DMA channel 2025-10-03 12:39:48 +01:00
hda-trace.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
hda.c ASoC: SOF: Intel: only detect codecs when HDA DSP probe 2025-08-29 10:50:37 +02:00
hda.h ASoC: SOF: Intel: only detect codecs when HDA DSP probe 2025-08-29 10:50:37 +02:00
icl.c
lnl.c ASoC: SOF: Intel: Create ptl.c as placeholder for Panther Lake features 2025-03-08 16:06:39 +00:00
lnl.h ASoC: SOF: Intel: Create ptl.c as placeholder for Panther Lake features 2025-03-08 16:06:39 +00:00
mtl.c ASoC: SOF: Intel: mtl: Stop exporting dsp_ops callback functions 2025-03-08 16:06:38 +00:00
mtl.h ASoC: SOF: Intel: mtl: Stop exporting dsp_ops callback functions 2025-03-08 16:06:38 +00:00
pci-apl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-cnl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-icl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-lnl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-mtl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-ptl.c ASoC: SOF: Intel: add initial support for WCL 2025-05-19 22:40:03 +02:00
pci-skl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-tgl.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
pci-tng.c ASoC: SOF: pci: Convert to EXPORT_NS_DEV_PM_OPS() 2025-03-17 10:14:56 +00:00
ptl.c ASoC: SOF: Intel: WCL: Add the sdw_process_wakeen op 2025-08-28 21:15:49 +02:00
ptl.h ASoC: SOF: Intel: ptl: Add support for mic privacy 2025-03-08 16:06:43 +00:00
shim.h ASoC: SOF: hda/shim: Add callbacks to handle mic privacy change for sdw 2025-03-08 16:06:42 +00:00
skl.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
telemetry.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
telemetry.h
tgl.c
tracepoints.c