]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: scarlett2: Add missing error check when initialise Autogain Status
authorRobertus Diawan Chris <robertusdchris@gmail.com>
Fri, 8 May 2026 03:39:14 +0000 (10:39 +0700)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 May 2026 06:33:12 +0000 (08:33 +0200)
commitc0e4fffc0f474b7ed10adee4ab2bc1a66d36fc72
treea617644280c8c0e565a9bf1852c17dc060eb09b3
parentfca7401fe37f7abc6e54147ea560f37279231137
ALSA: scarlett2: Add missing error check when initialise Autogain Status

When initialise new control with scarlett2_add_new_ctl() function for
Autogain Status, scarlett2_add_new_ctl() might throw an error. So, add
error check after initialise new control for Autogain Status.

This is reported by Coverity Scan with CID 1598781 as UNUSED_VALUE.

Fixes: 0a995e38dc44 ("ALSA: scarlett2: Add support for software-controllable input gain")
Signed-off-by: Robertus Diawan Chris <robertusdchris@gmail.com>
Link: https://patch.msgid.link/20260508033914.111596-1-robertusdchris@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer_scarlett2.c