diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-02-06 18:35:15 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-06 13:42:54 -0800 |
commit | 00670cb8a73b10b10d3c40f045c15411715e4465 (patch) | |
tree | c6ea6278589659c3bbd1144abaf0bde8409382ce /net/mpls | |
parent | 2b1f86bf741a3220b4471fef197631d6e2264983 (diff) |
net: dsa: Fix NULL checking in dsa_slave_set_eee()
This function can't succeed if dp->pl is NULL. It will Oops inside the
call to return phylink_ethtool_get_eee(dp->pl, e);
Fixes: 1be52e97ed3e ("dsa: slave: eee: Allow ports to use phylink")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions