diff options
author | Johan Hovold <johan@kernel.org> | 2017-03-07 18:11:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-09 12:25:37 +0300 |
commit | b7321e81fc369abe353cf094d4f0dc2fe11ab95f (patch) | |
tree | ad028bde06e21e8c234b757fb3180d5df4715148 /drivers/usb/chipidea/udc.c | |
parent | fd567653bdb908009b650f079bfd4b63169e2ac4 (diff) | |
download | linux-b7321e81fc369abe353cf094d4f0dc2fe11ab95f.tar.xz |
USB: iowarrior: fix NULL-deref at probe
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.")
Cc: stable <stable@vger.kernel.org> # 2.6.21
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
0 files changed, 0 insertions, 0 deletions