]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: usb-audio: Filter error from connector kctl ops, too
authorTakashi Iwai <tiwai@suse.de>
Sun, 12 Apr 2020 08:13:28 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:06:38 +0000 (09:06 +0200)
commit45b1c2cabcd591027ff785fb562fd06f51310028
treed51c3dd7bd8d1666d9567a0d16222a4e0d2122fb
parent89f1b5b7ec7204609ba6df165e5939d130e203b9
ALSA: usb-audio: Filter error from connector kctl ops, too

commit 48cc42973509afac24e83d6edc23901d102872d1 upstream.

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: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200412081331.4742-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer.c