linux/sound
Jiasheng Jiang d650ed0617 ASoC: soc-compress: Change the check for codec_dai
commit ccb4214f7f2a8b75acf493f31128e464ee1a3536 upstream.

It should be better to reverse the check on codec_dai
and returned early in order to be easier to understand.

Fixes: de2c6f98817f ("ASoC: soc-compress: prevent the potentially use of null pointer")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220310030041.1556323-1-jiasheng@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-15 14:18:29 +02:00
..
ac97
aoa
arm
atmel
core ALSA: oss: Fix PCM OSS buffer allocation overflow 2022-03-28 08:46:46 +02:00
drivers
firewire ALSA: firewire-lib: fix uninitialized flag for AV/C deferred transaction 2022-04-15 14:18:09 +02:00
hda
i2c
isa ALSA: cs4236: fix an incorrect NULL check on list iterator 2022-04-15 14:18:00 +02:00
mips
oss
parisc
pci ALSA: hda/realtek: Add alc256-samsung-headphone fixup 2022-04-15 14:18:25 +02:00
pcmcia
ppc
sh
soc ASoC: soc-compress: Change the check for codec_dai 2022-04-15 14:18:29 +02:00
sparc
spi ALSA: spi: Add check for clk_enable() 2022-04-15 14:18:08 +02:00
synth
usb ALSA: usb-audio: Add mute TLV for playback volumes on RODE NT-USB 2022-03-28 08:46:45 +02:00
x86 ALSA: intel_hdmi: Fix reference to PCM buffer address 2022-03-08 19:07:46 +01:00
xen
ac97_bus.c
Kconfig
last.c
Makefile
sound_core.c