summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ricoh.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-07 16:11:03 +0100
committerBen Hutchings <ben@decadent.org.uk>2017-06-05 21:17:19 +0100
commitd2d603cf8fd51f0da5e4bc809d17824faa7630f7 (patch)
treec78798a52afaa5e17a1de8a60852b7e3c754d786 /drivers/pcmcia/ricoh.h
parent174e03cdb2c314d76d76c93abbc3eef94db30f9a (diff)
downloadlinux-stable-d2d603cf8fd51f0da5e4bc809d17824faa7630f7.tar.gz
linux-stable-d2d603cf8fd51f0da5e4bc809d17824faa7630f7.tar.bz2
linux-stable-d2d603cf8fd51f0da5e4bc809d17824faa7630f7.zip
USB: iowarrior: fix NULL-deref at probe
commit b7321e81fc369abe353cf094d4f0dc2fe11ab95f upstream. Make sure to check for the required interrupt-in endpoint to avoid dereferencing a NULL-pointer should a malicious device lack such an endpoint. Note that a fairly recent change purported to fix this issue, but added an insufficient test on the number of endpoints only, a test which can now be removed. Fixes: 4ec0ef3a8212 ("USB: iowarrior: fix oops with malicious USB descriptors") Fixes: 946b960d13c1 ("USB: add driver for iowarrior devices.") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers/pcmcia/ricoh.h')
0 files changed, 0 insertions, 0 deletions