summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/cs3308.c
diff options
context:
space:
mode:
authorOliver Neukum <oneukum@suse.com>2020-05-05 12:50:33 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-07-19 07:42:57 +0200
commit137641287eb40260783a4413847a0aef06023a6c (patch)
tree3f9a94eff549c3711d81107d026f178dedaa8880 /drivers/media/i2c/cs3308.c
parentmedia: staging: tegra-vde: Power-cycle hardware on probe (diff)
downloadlinux-137641287eb40260783a4413847a0aef06023a6c.tar.xz
linux-137641287eb40260783a4413847a0aef06023a6c.zip
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: syzbot+cabfa4b5b05ff6be4ef0@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum <oneukum@suse.com> Fixes: 866b8695d67e8 ("Staging: add the go7007 video driver") Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/i2c/cs3308.c')
0 files changed, 0 insertions, 0 deletions