Linux kernel bug fix: ASoC: mediatek: Check num_codecs is not zero to avoid panic during probe
Subsystem: sound (sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c)
Bug type: null-deref, severity: high
Keywords: null pointer;uninitialized
Files changed: sound/soc/mediatek/mt8188/mt8188-mt6359.c;sound/soc/mediatek/mt8192/mt8192-mt6359-rt1015-rt5682.c;sound/soc/mediatek/mt8195/mt8195-mt6359.c
Introduced by Kuninori Morimoto on 2023-12-19 13:23:46 +0000; fixed by Nícolas F. R. A. Prado on 2024-11-27 11:28:25 +0000 (lifetime: 343 days)