ALSA: scarlett2: Add missing check with firmware version control
Subsystems (2)
Geoffrey D. Bennett
maintainerPATCH 1/1 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 Geoffrey D. Bennett <[email protected]>
--- sound/usb/mixer_scarlett2.c | 2 ++ 1 file changed, 2 insertions(+)
sound/usb/mixer_scarlett2.c +2 -0
@@ -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);
Signature · 1 line
2.41.0
Takashi Iwai
AppliedQuoted 5 lines · Geoffrey D. Bennett
scarlett2_add_firmware_version_ctl()may return an error, but the return value was not being checked. Add the missing check.Signed-off-by Geoffrey D. Bennett <[email protected]>
Thanks, applied with Fixes tag.
Takashi