Commit a5901f27 authored by Geoffrey D. Bennett's avatar Geoffrey D. Bennett Committed by Takashi Iwai
Browse files

ALSA: scarlett2: Add missing check with firmware version control



scarlett2_add_firmware_version_ctl() may return an error, but the
return value was not being checked. Add the missing check.

Signed-off-by: default avatarGeoffrey D. Bennett <g@b4.vu>
Fixes: 701949cc ("ALSA: scarlett2: Add support for reading firmware version")
Link: https://lore.kernel.org/r/ZTuKcXajVnuelBEb@m.b4.vu


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent fe981e67
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4424,6 +4424,8 @@ static int snd_scarlett2_controls_create(

	/* Add firmware version control */
	err = scarlett2_add_firmware_version_ctl(mixer);
	if (err < 0)
		return err;

	/* Read volume levels and controls from the interface */
	err = scarlett2_read_configs(mixer);