aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-07 16:11:03 +0100
committerFlex1911 <dedsa2002@gmail.com>2017-07-10 01:43:20 +0300
commit14d798ddab629e309d90d3eb9453b76e72149351 (patch)
tree5b3f87e5fc88c7d82704cf367cb9ff7f7772c30f /lib/mpi/mpi-inline.c
parent4c83bc5083e3a1d406fca013c27ee71cf16c4f84 (diff)
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.") Change-Id: If94c965de37c95d8dd4f111d6ab03c72822fd328 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 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions