linux/sound/pci/hda
Simon Trimmer 6386682cdc ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind()
The cs35l41_hda_unbind() function clears the hda_component entry
matching it's index and then dereferences the codec pointer held in the
first element of the hda_component array, this is an issue when the
device index was 0.

Instead use the codec pointer stashed in the cs35l41_hda structure as it
will still be valid.

Fixes: 7cf5ce66df ("ALSA: hda: cs35l41: Add device_link between HDA and cs35l41_hda")
Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20240531120820.35367-1-simont@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2024-05-31 14:38:41 +02:00
..
ca0132_regs.h
cirrus_scodec.c ALSA: hda: cs35l56: Add support for speaker id 2023-09-18 17:49:26 +02:00
cirrus_scodec.h ALSA: hda: cs35l56: Add support for speaker id 2023-09-18 17:49:26 +02:00
cirrus_scodec_test.c ALSA: hda: cirrus_scodec_test: Add missing module descriptions 2024-05-09 10:13:07 +02:00
cs35l41_hda.c ALSA: hda: cs35l41: Possible null pointer dereference in cs35l41_hda_unbind() 2024-05-31 14:38:41 +02:00
cs35l41_hda.h ALSA: hda: cs35l41: Use shared cs-amp-lib to apply calibration 2024-04-18 08:43:19 +02:00
cs35l41_hda_i2c.c ALSA: hda: cs35l41: Prevent firmware load if SPI speed too low 2023-12-29 14:28:29 +01:00
cs35l41_hda_property.c ALSA: hda/realtek: Fix internal speakers for Legion Y9000X 2022 IAH7 2024-05-08 18:17:22 +02:00
cs35l41_hda_property.h ALSA: hda: cs35l41: Support systems with missing _DSD properties 2023-08-15 20:51:19 +02:00
cs35l41_hda_spi.c ALSA: hda: cs35l41: Prevent firmware load if SPI speed too low 2023-12-29 14:28:29 +01:00
cs35l56_hda.c ALSA: hda: cs35l56: Fix lifecycle of codec pointer 2024-05-31 14:38:29 +02:00
cs35l56_hda.h ALSA: hda: cs35l56: Add support for CS35L54 and CS35L57 2024-03-08 17:59:19 +01:00
cs35l56_hda_i2c.c ALSA: hda: cs35l56: Add ACPI device match tables 2024-03-28 14:27:20 +01:00
cs35l56_hda_spi.c ALSA: hda: cs35l56: Add ACPI device match tables 2024-03-28 14:27:20 +01:00
hda_auto_parser.c ALSA: hda/realtek: Apply fixup for Lenovo Yoga Duet 7 properly 2022-06-15 07:28:51 +02:00
hda_auto_parser.h ALSA: hda: Fix missing header dependencies 2023-07-23 23:40:22 +01:00
hda_beep.c ALSA: hda: beep: Drop stale mutex 2024-02-22 17:26:53 +01:00
hda_beep.h ALSA: hda: beep: Drop stale mutex 2024-02-22 17:26:53 +01:00
hda_bind.c ASoC: do not include pm_runtime.h if not used 2023-05-23 13:55:55 +01:00
hda_codec.c ALSA: hda: codec: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
hda_component.c ALSA: hda: hda_component: Initialize shared data during bind callback 2024-05-08 18:18:23 +02:00
hda_component.h ALSA: hda: hda_component: Initialize shared data during bind callback 2024-05-08 18:18:23 +02:00
hda_controller.c ALSA: hda: clarify Copyright information 2024-05-09 20:26:02 +02:00
hda_controller.h ALSA: hda: Introduce flags to force commands via PIO instead of CORB 2024-04-18 08:38:54 +02:00
hda_controller_trace.h
hda_cs_dsp_ctl.c ASoC: Updates for v6.10 2024-05-13 11:39:49 +02:00
hda_cs_dsp_ctl.h ALSA: hda/cs_dsp_ctl: Fix mutex inversion when creating controls 2022-10-12 08:02:47 +02:00
hda_eld.c ALSA: hda/hdmi: ELD procfs - print the codec NIDs 2022-09-21 12:12:29 +02:00
hda_generic.c ALSA: hda: generic: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
hda_generic.h ALSA: hda: generic: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
hda_hwdep.c ALSA: hwdep: Don't embed device 2023-08-17 09:24:01 +02:00
hda_intel.c ALSA: hda: clarify Copyright information 2024-05-09 20:26:02 +02:00
hda_intel.h ALSA: hda: intel: Allow repeatedly probing on codec configuration errors 2021-10-07 09:15:22 +02:00
hda_intel_trace.h ALSA: hda: intel: Reduce CONFIG_PM dependencies 2024-05-08 18:05:07 +02:00
hda_jack.c ALSA: hda: Do disconnect jacks at codec unbind 2021-11-17 14:41:16 +01:00
hda_jack.h ALSA: hda: Do disconnect jacks at codec unbind 2021-11-17 14:41:16 +01:00
hda_local.h ALSA: hda/hdmi: ELD procfs - print the codec NIDs 2022-09-21 12:12:29 +02:00
hda_proc.c ALSA: hda/proc - print DP-MST connections 2020-12-08 20:04:33 +01:00
hda_sysfs.c ALSA: hda: codec: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
hda_tegra.c ALSA: hda/tegra: refactor deprecated strncpy 2023-08-08 14:46:11 +02:00
hp_x360_helper.c
ideapad_s740_helper.c ALSA: hda/realtek: Add quirk for Lenovo Ideapad S740 2021-04-16 10:12:50 +02:00
Kconfig ALSA: hda: cs35l41: Use shared cs-amp-lib to apply calibration 2024-04-18 08:43:19 +02:00
Makefile ALSA: pci: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:37 +02:00
patch_analog.c ALSA: hda: analog: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
patch_ca0110.c
patch_ca0132.c ALSA: hda: ca0132: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
patch_cirrus.c ALSA: hda: cirrus: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
patch_cmedia.c
patch_conexant.c ALSA: hda: conexant: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
patch_cs8409-tables.c ALSA: hda/cs8409: Support new Dell Dolphin Variants 2023-08-11 16:45:52 +02:00
patch_cs8409.c ALSA: hda: cs4809: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
patch_cs8409.h ALSA: hda/cirrus: Fix broken audio on hardware with two CS42L42 codecs. 2023-09-04 18:09:24 +02:00
patch_hdmi.c ALSA: hda: clarify Copyright information 2024-05-09 20:26:02 +02:00
patch_realtek.c ALSA: hda/realtek: Adjust G814JZR to use SPI init for amp 2024-05-27 09:29:19 +02:00
patch_si3054.c
patch_sigmatel.c ALSA: hda: sigmantel: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
patch_via.c ALSA: hda: via: Reduce CONFIG_PM dependencies 2024-05-08 18:05:08 +02:00
tas2781_hda_i2c.c ALSA: hda/tas2781: correct the register for pow calibrated data 2024-04-07 08:32:14 +02:00
thinkpad_helper.c ALSA: HDA - remove the custom implementation for the audio LED trigger 2021-03-30 15:35:15 +02:00