diff options
author | 2015-07-11 18:02:11 -0700 | |
---|---|---|
committer | 2015-07-11 23:25:16 -0700 | |
commit | c8cf89f73f3d9ecbdea479778f0ac714be79be33 (patch) | |
tree | b35f6925713d88442f5a3e5d2490b9165ba42b29 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: dsa: Test array index before use (diff) | |
download | wireguard-linux-c8cf89f73f3d9ecbdea479778f0ac714be79be33.tar.xz wireguard-linux-c8cf89f73f3d9ecbdea479778f0ac714be79be33.zip |
net: dsa: Fix off-by-one in switch address parsing
cd->sw_addr is used as a MDIO bus address, which cannot exceed
PHY_MAX_ADDR (32), our check was off-by-one.
Fixes: 5e95329b701c ("dsa: add device tree bindings to register DSA switches")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions