diff options
author | Johan Hovold <johan@kernel.org> | 2014-06-05 16:05:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-09 10:51:19 -0700 |
commit | d539a0515798a3790eaa4a898746fc105be237b0 (patch) | |
tree | b3202b423fca5cfb5f9d4f561f56e56bc336c402 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 1d4cd89665c5a7e594cd1bbd5fac776c039ad62d (diff) |
USB: ftdi_sio: fix null deref at port probe
commit aea1ae8760314e072bf1b773521e9de5d5dda10d upstream.
Fix NULL-pointer dereference when probing an interface with no
endpoints.
These devices have two bulk endpoints per interface, but this avoids
crashing the kernel if a user forces a non-FTDI device to be probed.
Note that the iterator variable was made unsigned in order to avoid
a maybe-uninitialized compiler warning for ep_desc after the loop.
Fixes: 895f28badce9 ("USB: ftdi_sio: fix hi-speed device packet size
calculation")
Reported-by: Mike Remski <mremski@mutualink.net>
Tested-by: Mike Remski <mremski@mutualink.net>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions