Skip to content
Snippets Groups Projects
Commit 13764128 authored by Oliver Neukum's avatar Oliver Neukum Committed by Mauro Carvalho Chehab
Browse files

go7007: add sanity checking for endpoints


A malicious USB device may lack endpoints the driver assumes to exist
Accessing them leads to NULL pointer accesses. This patch introduces
sanity checking.

Reported-and-tested-by: default avatar <syzbot+cabfa4b5b05ff6be4ef0@syzkaller.appspotmail.com>

Signed-off-by: default avatarOliver Neukum <oneukum@suse.com>
Fixes: 866b8695 ("Staging: add the go7007 video driver")
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent ebeacb1f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment