]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb/quirks, fix out-of-bounds access
authorJiri Slaby <jslaby@suse.cz>
Sun, 17 Feb 2013 13:33:04 +0000 (14:33 +0100)
committerTakashi Iwai <tiwai@suse.de>
Sun, 17 Feb 2013 17:02:00 +0000 (18:02 +0100)
commit6664f52007eab9951e551571b78c304152b05bac
treed1ab789fbca64ee1cd7e7f0deede7c6f855bd87d
parentd170aeffc25eb658b9a815c71e2ea723370f80e2
ALSA: usb/quirks, fix out-of-bounds access

bootresponse in snd_usb_mbox2_boot_quirk is only 12 (decimal) u8's
long, but i9s passed to snd_usb_ctl_msg as it would be 0x12 (hexa)
long. Fix that by having proper size of the array, i.e. 0x12.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/quirks.c