diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-04-07 11:44:01 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2020-04-07 17:42:29 +0300 |
commit | 0ad3f0b384d58f3bd1f4fb87d0af5b8f6866f41a (patch) | |
tree | 47c181d53c04caebc3e5ba60149f6162954b1158 /Documentation/PCI/pci-error-recovery.rst | |
parent | 24164f434dc9c23cd34fca1e36acea9d0581bdde (diff) | |
download | linux-0ad3f0b384d58f3bd1f4fb87d0af5b8f6866f41a.tar.xz |
ALSA: hda: Fix potential access overflow in beep helper
The beep control helper function blindly stores the values in two
stereo channels no matter whether the actual control is mono or
stereo. This is practically harmless, but it annoys the recently
introduced sanity check, resulting in an error when the checker is
enabled.
This patch corrects the behavior to store only on the defined array
member.
Fixes: 0401e8548eac ("ALSA: hda - Move beep helper functions to hda_beep.c")
BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207139
Reviewed-by: Jaroslav Kysela <perex@perex.cz>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200407084402.25589-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'Documentation/PCI/pci-error-recovery.rst')
0 files changed, 0 insertions, 0 deletions