linux/net/dsa
Florian Fainelli 0e1b541ba2 net: dsa: Fix off-by-one in switch address parsing
commit c8cf89f73f upstream.

cd->sw_addr is used as a MDIO bus address, which cannot exceed
PHY_MAX_ADDR (32), our check was off-by-one.

Fixes: 5e95329b70 ("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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-08-10 17:10:19 +01:00
..
dsa.c net: dsa: Fix off-by-one in switch address parsing 2015-08-10 17:10:19 +01:00
dsa_priv.h dsa: Move all definitions needed by drivers into <net/dsa.h> 2011-11-29 00:21:36 -05:00
Kconfig dsa: Hide core config options; make drivers select what they need 2012-11-26 17:10:44 -05:00
Makefile dsa: Move switch drivers to new directory drivers/net/dsa 2011-11-29 00:21:36 -05:00
slave.c net: get rid of SET_ETHTOOL_OPS 2014-05-13 17:43:20 -04:00
tag_dsa.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00
tag_edsa.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00
tag_trailer.c dsa: Combine core and tagging code 2011-11-26 14:48:15 -05:00