Thread (2 messages) 2 messages, 2 authors, 2020-07-31

Re: [PATCH net] net: ll_temac: Use devm_platform_ioremap_resource_byname()

From: David Miller <davem@davemloft.net>
Date: 2020-07-31 00:44:59
Also in: linux-arm-kernel, lkml

From: Wang Hai <redacted>
Date: Thu, 30 Jul 2020 15:24:19 +0800
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: 8425c41d1ef7 ("net: ll_temac: Extend support to non-device-tree platforms")
Reported-by: Hulk Robot <redacted>
Signed-off-by: Wang Hai <redacted>
Applied to net-next.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help