]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix copy&paste error in the validator
authorTakashi Iwai <tiwai@suse.de>
Tue, 22 Oct 2019 15:45:14 +0000 (17:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 22 Oct 2019 15:47:32 +0000 (17:47 +0200)
commit11c6a85490e57ee7e8cd2666077af19e3d2811da
tree716eea9419e75bf4fb525f2329bae05c08d4da7a
parentbf7fcfb5f4b182eef74a64fb2df76a33b9e9dbb2
ALSA: usb-audio: Fix copy&paste error in the validator

The recently introduced USB-audio descriptor validator had a stupid
copy&paste error that may lead to an unexpected overlook of too short
descriptors for processing and extension units.  It's likely the cause
of the report triggered by syzkaller fuzzer.  Let's fix it.

Fixes: 88246bc2bd7c ("ALSA: usb-audio: More validations of descriptor units")
Reported-by: syzbot+0620f79a1978b1133fd7@syzkaller.appspotmail.com
Link: https://lore.kernel.org/r/s5hsgnkdbsl.wl-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/validate.c