diff options
author | Johan Hovold <johan@kernel.org> | 2020-01-14 11:27:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-15 05:43:21 +0300 |
commit | 86f3f4cd53707ceeec079b83205c8d3c756eca93 (patch) | |
tree | fc0ca9cf35e8a6cf065344a9548e3a3ade6bf31e /tools/perf/scripts/python | |
parent | c742c59e1fbd022b64d91aa9a0092b3a699d653c (diff) | |
download | linux-86f3f4cd53707ceeec079b83205c8d3c756eca93.tar.xz |
r8152: add missing endpoint sanity check
Add missing endpoint sanity check to probe in order to prevent a
NULL-pointer dereference (or slab out-of-bounds access) when retrieving
the interrupt-endpoint bInterval on ndo_open() in case a device lacks
the expected endpoints.
Fixes: 40a82917b1d3 ("net/usb/r8152: enable interrupt transfer")
Cc: hayeswang <hayeswang@realtek.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions