aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorWong Vee Khee <[email protected]>2021-08-10 16:58:12 +0800
committerJakub Kicinski <[email protected]>2021-08-11 14:50:54 -0700
commit2cad5d2ed1b47eded5a2f2372c2a94bb065a8f97 (patch)
treea9347c1c281a16599af9ab01552287576334370e /tools/perf/scripts/python
parent6922110d152e56d7569616b45a1f02876cf3eb9f (diff)
net: pcs: xpcs: fix error handling on failed to allocate memory
Drivers such as sja1105 and stmmac that call xpcs_create() expects an error returned by the pcs-xpcs module, but this was not the case on failed to allocate memory. Fixed this by returning an -ENOMEM instead of a NULL pointer. Fixes: 3ad1d171548e ("net: dsa: sja1105: migrate to xpcs for SGMII") Signed-off-by: Wong Vee Khee <[email protected]> Reviewed-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions