mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
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: [email protected]
Signed-off-by: Oliver Neukum <[email protected]>
Fixes: 866b8695d6 ("Staging: add the go7007 video driver")
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>