WSL2-Linux-Kernel/sound
Jiasheng Jiang bd419c7c68 ASoC: max98373: Add checks for devm_kcalloc
[ Upstream commit 60591bbf6d ]

As the devm_kcalloc may return NULL pointer,
it should be better to check the return value
in order to avoid NULL poineter dereference.

Fixes: 349dd23931 ("ASoC: max98373: don't access volatile registers in bias level off")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20221116082508.17418-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-02 17:41:03 +01:00
..
ac97
aoa ALSA: aoa: Fix I2S device accounting 2022-11-03 23:59:18 +09:00
arm
atmel
core ALSA: dmaengine: increment buffer pointer atomically 2022-10-26 12:34:56 +02:00
drivers ALSA: aloop: Fix random zeros in capture data when using jiffies timer 2022-09-15 11:30:02 +02:00
firewire
hda ALSA: hda: fix potential memleak in 'add_widget_node' 2022-11-16 09:58:25 +01:00
i2c
isa
mips
oss
parisc
pci ALSA: hda/realtek: Fix the speaker output on Samsung Galaxy Book Pro 360 2022-11-26 09:24:44 +01:00
pcmcia
ppc
sh
soc ASoC: max98373: Add checks for devm_kcalloc 2022-12-02 17:41:03 +01:00
sparc
spi
synth ALSA: Use del_timer_sync() before freeing timer 2022-11-03 23:59:10 +09:00
usb ALSA: usb-audio: add quirk to fix Hamedal C20 disconnect issue 2022-12-02 17:41:02 +01:00
virtio
x86
xen
Kconfig
Makefile
ac97_bus.c
last.c
sound_core.c