summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/b53/b53_common.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2019-02-15 23:16:52 +0300
committerDavid S. Miller <davem@davemloft.net>2019-02-16 07:37:54 +0300
commitc3152ec4c0691e351f35a2f63347a464b5f35151 (patch)
tree56a54245f2d1bb7e6133bcfa6defafd0cc7ff267 /drivers/net/dsa/b53/b53_common.c
parenta40061ea2e39494104602b3048751341bda374a1 (diff)
downloadlinux-c3152ec4c0691e351f35a2f63347a464b5f35151.tar.xz
net: dsa: bcm_sf2: Do not assume DSA master supports WoL
We assume in the bcm_sf2 driver that the DSA master network device supports ethtool_ops::{get,set}_wol operations, which is not a given. Avoid de-referencing potentially non-existent function pointers and check them as we should. Fixes: 96e65d7f3f88 ("net: dsa: bcm_sf2: add support for Wake-on-LAN") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/b53/b53_common.c')
0 files changed, 0 insertions, 0 deletions