mirror of https://gitee.com/openkylin/linux.git
bd69058f50
platform_get_resource() may fail and return NULL, so we had better
check its return value to avoid a NULL pointer dereference a bit later
in the code. Fix it to use devm_platform_ioremap_resource_byname()
instead of calling platform_get_resource_byname() and devm_ioremap().
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
ll_temac.h | ||
ll_temac_main.c | ||
ll_temac_mdio.c | ||
xilinx_axienet.h | ||
xilinx_axienet_main.c | ||
xilinx_axienet_mdio.c | ||
xilinx_emaclite.c |