From: Takashi Iwai Date: Sun, 12 Apr 2020 08:13:28 +0000 (+0200) Subject: ALSA: usb-audio: Filter error from connector kctl ops, too X-Git-Tag: v5.7-rc2~30^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48cc42973509afac24e83d6edc23901d102872d1;p=thirdparty%2Flinux.git ALSA: usb-audio: Filter error from connector kctl ops, too The ignore_ctl_error option should filter the error at kctl accesses, but there was an overlook: mixer_ctl_connector_get() returns an error from the request. This patch covers the forgotten code path and apply filter_error() properly. The locking error is still returned since this is a fatal error that has to be reported even with ignore_ctl_error option. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=206873 Cc: Link: https://lore.kernel.org/r/20200412081331.4742-2-tiwai@suse.de Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c index 721d12130d0cb..d27e390dcd329 100644 --- a/sound/usb/mixer.c +++ b/sound/usb/mixer.c @@ -1457,7 +1457,7 @@ error: usb_audio_err(chip, "cannot get connectors status: req = %#x, wValue = %#x, wIndex = %#x, type = %d\n", UAC_GET_CUR, validx, idx, cval->val_type); - return ret; + return filter_error(cval, ret); } ucontrol->value.integer.value[0] = val;