summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorAnant Thazhemadam <anant.thazhemadam@gmail.com>2020-10-10 13:59:32 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-17 11:03:30 +0200
commit54202ff16a3b6db3eaad02cb15f93c5e61348f7e (patch)
tree549cd73df669ed31b1a86011a03d8e8cb9e97603 /drivers/usb/serial/ftdi_sio.c
parent38183676344f903a1ed11975288d0790e232c95b (diff)
downloadlinux-stable-54202ff16a3b6db3eaad02cb15f93c5e61348f7e.tar.gz
linux-stable-54202ff16a3b6db3eaad02cb15f93c5e61348f7e.tar.bz2
linux-stable-54202ff16a3b6db3eaad02cb15f93c5e61348f7e.zip
staging: comedi: check validity of wMaxPacketSize of usb endpoints found
commit e1f13c879a7c21bd207dc6242455e8e3a1e88b40 upstream. While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if wMaxPacketSize = 0 for the endpoints found. Some devices have isochronous endpoints that have wMaxPacketSize = 0 (as required by the USB-2 spec). However, since this doesn't apply here, wMaxPacketSize = 0 can be considered to be invalid. Reported-by: syzbot+009f546aa1370056b1c2@syzkaller.appspotmail.com Tested-by: syzbot+009f546aa1370056b1c2@syzkaller.appspotmail.com Signed-off-by: Anant Thazhemadam <anant.thazhemadam@gmail.com> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20201010082933.5417-1-anant.thazhemadam@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
0 files changed, 0 insertions, 0 deletions