OpenCloudOS-Kernel/drivers/net/ethernet/freescale/fman
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
..
Kconfig ethernet: select CONFIG_CRC32 as needed 2020-12-04 14:42:21 -08:00
Makefile Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-11-04 09:26:51 +09:00
fman.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_dtsec.c net: fman: dtsec: Always gracefully stop/start 2022-08-19 16:35:54 -07:00
fman_dtsec.h net: fman: Don't pass comm_mode to enable/disable 2022-08-19 16:35:53 -07:00
fman_keygen.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_keygen.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_mac.h net: fman: dtsec: Always gracefully stop/start 2022-08-19 16:35:54 -07:00
fman_memac.c net: fman: Don't pass comm_mode to enable/disable 2022-08-19 16:35:53 -07:00
fman_memac.h net: fman: Don't pass comm_mode to enable/disable 2022-08-19 16:35:53 -07:00
fman_muram.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_muram.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_port.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_port.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_sp.c net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_sp.h net: fman: Convert to SPDX identifiers 2022-08-19 16:35:53 -07:00
fman_tgec.c net: fman: Don't pass comm_mode to enable/disable 2022-08-19 16:35:53 -07:00
fman_tgec.h net: fman: Don't pass comm_mode to enable/disable 2022-08-19 16:35:53 -07:00
mac.c net: fman: memac: Uninitialized variable on error path 2022-08-26 19:47:36 -07:00
mac.h net: fman: Export/rename some common functions 2022-08-19 16:35:55 -07:00