aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-06-08 16:10:37 +0300
committerDavid S. Miller <[email protected]>2021-06-08 16:31:25 -0700
commitb55b1d50b08ce3b79329f62da8104b25c607bf38 (patch)
treec8adb6cc770ce590a6b2ea91d1fc359b00226838 /tools/perf/scripts/python/stackcollapse.py
parente83332842a46c091992ad06145b5c1b65a08ab05 (diff)
net: stmmac: fix NPD with phylink_set_pcs if there is no MDIO bus
priv->plat->mdio_bus_data is optional, some platforms may not set it, however we proceed to look straight at priv->plat->mdio_bus_data->has_xpcs. Since the xpcs is instantiated based on the has_xpcs property, we can avoid looking at the priv->plat->mdio_bus_data structure altogether and just check for the presence of the xpcs pointer. Fixes: 11059740e616 ("net: pcs: xpcs: convert to phylink_pcs_ops") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions