linux/net/dsa
Andrew Lunn 228b16cb13 Net: DSA: Fix checking for get_phy_flags function
The check for the presence or not of the optional switch function
get_phy_flags() called the function, rather than checked to see if it
is a NULL pointer. This causes a derefernce of a NULL pointer on all
switch chips except the sf2, the only switch to implement this call.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Fixes: 6819563e64 ("net: dsa: allow switch drivers to specify phy_device::dev_flags")
Cc: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-10-19 12:46:31 -04:00
..
dsa_priv.h net: dsa: allow switch drivers to implement suspend/resume hooks 2014-09-22 14:41:23 -04:00
dsa.c net: dsa: Fix build warning for !PM_SLEEP 2014-10-01 15:24:00 -04:00
Kconfig
Makefile
slave.c Net: DSA: Fix checking for get_phy_flags function 2014-10-19 12:46:31 -04:00
tag_brcm.c
tag_dsa.c
tag_edsa.c
tag_trailer.c