diff options
author | Johan Hovold <johan@kernel.org> | 2020-07-28 15:10:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-28 23:35:44 +0300 |
commit | 8d8e95fd6d69d774013f51e5f2ee10c6e6d1fc14 (patch) | |
tree | 03ad8c7fe8f15ede76c671a0cfc1b26a4acce2f3 /tools/perf/scripts/python | |
parent | e911e99a0770f760377c263bc7bac1b1593c6147 (diff) | |
download | linux-8d8e95fd6d69d774013f51e5f2ee10c6e6d1fc14.tar.xz |
net: lan78xx: add missing endpoint sanity check
Add the missing endpoint sanity check to prevent a NULL-pointer
dereference should a malicious device lack the expected endpoints.
Note that the driver has a broken endpoint-lookup helper,
lan78xx_get_endpoints(), which can end up accepting interfaces in an
altsetting without endpoints as long as *some* altsetting has a bulk-in
and a bulk-out endpoint.
Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Cc: Woojung.Huh@microchip.com <Woojung.Huh@microchip.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