diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-12-11 16:00:48 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-12-11 16:03:55 +0300 |
commit | c6dde8ffd071aea9d1ce64279178e470977b235c (patch) | |
tree | ce7971407b6347f7f36b535ab97bd3796bc23154 /drivers/mmc/host/sdhci-of-arasan.c | |
parent | 607184cb1635eaee239fe3fb9648a8b82a5232d7 (diff) | |
download | linux-c6dde8ffd071aea9d1ce64279178e470977b235c.tar.xz |
ALSA: usb-audio: Fix control 'access overflow' errors from chmap
The current channel-map control implementation in USB-audio driver may
lead to an error message like
"control 3:0:0:Playback Channel Map:0: access overflow"
when CONFIG_SND_CTL_VALIDATION is set. It's because the chmap get
callback clears the whole array no matter which count is set, and
rather the false-positive detection.
This patch fixes the problem by clearing only the needed array range
at usb_chmap_ctl_get().
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20201211130048.6358-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/mmc/host/sdhci-of-arasan.c')
0 files changed, 0 insertions, 0 deletions