1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/xilinx
Claus Hansen Ries 3a38a829c8 net: ll_temac: platform_get_resource replaced by wrong function
The function platform_get_resource was replaced with
devm_platform_ioremap_resource_byname and is called using 0 as name.

This eventually ends up in platform_get_resource_byname in the call
stack, where it causes a null pointer in strcmp.

	if (type == resource_type(r) && !strcmp(r->name, name))

It should have been replaced with devm_platform_ioremap_resource.

Fixes: bd69058f50 ("net: ll_temac: Use devm_platform_ioremap_resource_byname()")
Signed-off-by: Claus Hansen Ries <chr@terma.com>
Cc: stable@vger.kernel.org
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/cca18f9c630a41c18487729770b492bb@terma.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-25 19:46:56 -07:00
..
Kconfig net: axienet: Introduce dmaengine support 2023-11-20 17:52:22 -08:00
ll_temac.h net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
ll_temac_main.c net: ll_temac: platform_get_resource replaced by wrong function 2024-03-25 19:46:56 -07:00
ll_temac_mdio.c net: Explicitly include correct DT includes 2023-07-27 20:33:16 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xilinx_axienet.h net: axienet: Introduce dmaengine support 2023-11-20 17:52:22 -08:00
xilinx_axienet_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-11-23 12:20:58 -08:00
xilinx_axienet_mdio.c net: axienet: set mdio clock according to bus-frequency 2022-11-21 10:36:03 +00:00
xilinx_emaclite.c net: emaclite: Use devm_platform_get_and_ioremap_resource() in xemaclite_of_probe() 2024-02-09 12:27:43 -08:00