linux-stable/drivers/net/ethernet/freescale
Dan Carpenter 931d0a8b20 net: fman: memac: Uninitialized variable on error path
The "fixed_link" is only allocated sometimes but it's freed
unconditionally in the error handling.  Set it to NULL so we don't free
uninitialized data.

Fixes: 9ea4742a55 ("net: fman: Configure fixed link in memac_initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/Ywd2X6gdKmTfYBxD@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-08-26 19:47:36 -07:00
..
dpaa Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2022-08-25 16:07:42 -07:00
dpaa2 dpaa2-eth: trace the allocated address instead of page struct 2022-08-11 10:30:04 -07:00
enetc net: enetc: Use pci_release_region() to release some resources 2022-05-28 20:20:42 +01:00
fman net: fman: memac: Uninitialized variable on error path 2022-08-26 19:47:36 -07:00
fs_enet powerpc updates for 6.0 2022-08-06 16:38:17 -07:00
fec.h fec: Restart PPS after link state change 2022-08-24 09:53:23 +01:00
fec_main.c fec: Restart PPS after link state change 2022-08-24 09:53:23 +01:00
fec_mpc52xx.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_mpc52xx.h
fec_mpc52xx_phy.c powerpc/mpc5xxx: Switch mpc5xxx_get_bus_frequency() to use fwnode 2022-06-22 12:51:49 +10:00
fec_ptp.c fec: Restart PPS after link state change 2022-08-24 09:53:23 +01:00
fsl_pq_mdio.c
gianfar.c net: gianfar: add support for software TX timestamping 2022-06-30 21:09:05 -07:00
gianfar.h eth: gfar: remove a copy of the NAPI_POLL_WEIGHT define 2022-04-29 11:56:42 +01:00
gianfar_ethtool.c net: gianfar: add support for software TX timestamping 2022-06-30 21:09:05 -07:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile net: enetc: fix link error again 2021-04-22 13:23:07 -07:00
ucc_geth.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
ucc_geth.h
ucc_geth_ethtool.c ethtool: extend ringparam setting/getting API with rx_buf_len 2021-11-22 12:31:49 +00:00
xgmac_mdio.c net: freescale: xgmac: Do not dereference fwnode in struct device 2022-08-22 14:53:13 +01:00