mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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: ef4ba63f12
("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>
This commit is contained in:
parent
ef4ba63f12
commit
4098967943
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ int cs35l41_add_dsd_properties(struct cs35l41_hda *cs35l41, struct device *physd
|
||||||
{
|
{
|
||||||
const struct cs35l41_prop_model *model;
|
const struct cs35l41_prop_model *model;
|
||||||
|
|
||||||
for (model = cs35l41_prop_model_table; model->hid > 0; model++) {
|
for (model = cs35l41_prop_model_table; model->hid; model++) {
|
||||||
if (!strcmp(model->hid, hid) &&
|
if (!strcmp(model->hid, hid) &&
|
||||||
(!model->ssid ||
|
(!model->ssid ||
|
||||||
(cs35l41->acpi_subsystem_id &&
|
(cs35l41->acpi_subsystem_id &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue