diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2020-11-13 12:20:43 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-24 15:27:24 +0300 |
commit | 2e870e4116e09e870bb915265a66b87efc2d82e2 (patch) | |
tree | 94d885e7b436e8d18a3518bae232179eec4c9be2 /sound/usb | |
parent | def6149e400bb8a12a3032214a3fb3f54fec35ab (diff) | |
download | linux-2e870e4116e09e870bb915265a66b87efc2d82e2.tar.xz |
ALSA: ctl: fix error path at adding user-defined element set
commit 95a793c3bc75cf888e0e641d656e7d080f487d8b upstream.
When processing request to add/replace user-defined element set, check
of given element identifier and decision of numeric identifier is done
in "__snd_ctl_add_replace()" helper function. When the result of check
is wrong, the helper function returns error code. The error code shall
be returned to userspace application.
Current implementation includes bug to return zero to userspace application
regardless of the result. This commit fixes the bug.
Cc: <stable@vger.kernel.org>
Fixes: e1a7bfe38079 ("ALSA: control: Fix race between adding and removing a user element")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20201113092043.16148-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/usb')
0 files changed, 0 insertions, 0 deletions