Files
linux/drivers/net
Wong Vee Khee 2cad5d2ed1 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: 3ad1d17154 ("net: dsa: sja1105: migrate to xpcs for SGMII")
Signed-off-by: Wong Vee Khee <vee.khee.wong@linux.intel.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20210810085812.1808466-1-vee.khee.wong@linux.intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-08-11 14:50:54 -07:00
..
2021-07-16 17:22:35 -07:00
2021-07-13 09:43:50 -07:00
2021-08-03 11:14:03 +01:00
2021-07-23 10:34:31 +02:00
2021-06-28 12:44:17 -07:00
2021-05-20 15:10:57 -07:00
2021-06-14 13:17:10 -07:00
2021-06-01 17:05:04 -07:00
2021-04-16 15:31:02 -07:00
2021-05-20 15:10:57 -07:00
2021-04-13 15:13:13 -07:00
2021-05-19 12:01:44 -07:00