]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: avs: Fix NULL ptr deref on rmmod
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Tue, 8 Jul 2025 10:50:09 +0000 (12:50 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 8 Jul 2025 13:54:40 +0000 (14:54 +0100)
commita609bd74b8680dba62c44f7e6d00d381ddb2d3c0
treea4312f51f21d8b7cce91cfbcfd8f2dd83aea908a
parent6f80be548588429100eb1f5e25dc2a714d583ffe
ASoC: Intel: avs: Fix NULL ptr deref on rmmod

When uloading snd_soc_avs module there is NULL pointer dereference.
It happens, because codec was moved into pdata and
avs_component_hda_unregister_dais() was not updated.

Fixes: 1581d5c68208 ("ASoC: Intel: avs: boards: Add Kconfig option for obsolete card names")
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://patch.msgid.link/20250708105009.1883627-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/avs/pcm.c