ALSA: hda: cs35l41: Fix the loop check in cs35l41_add_dsd_properties
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 Aug 2023 06:35:25 +0000 (08:35 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 16 Aug 2023 06:36:07 +0000 (08:36 +0200)
commit409896794380c1dc0d596bbb9255e583a94d9a00
tree51ed8c149c0b334beef79421740abfebe965dd34
parentef4ba63f12b03532378395a8611f2f6e22ece67b
ALSA: hda: cs35l41: Fix the loop check in cs35l41_add_dsd_properties

model->hid is a pointer, and should be rather NULL-checked in the loop
of cs35l41_prop_model_table.

Fixes: ef4ba63f12b0 ("ALSA: hda: cs35l41: Support systems with missing _DSD properties")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308160506.8lCEeFDG-lkp@intel.com/
Link: https://lore.kernel.org/r/20230816063525.23009-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda_property.c