Re: [PATCH] net: xilinx: fix potential NULL dereference in temac_probe()

From: Markus Elfring <hidden>
Date: 2020-07-14 09:43:24
Also in: lkml

If you use devm_ioremap_resource() you can remove the !res check
entirely which would be equally acceptable as a fix.
Would you like to use the wrapper function “devm_platform_get_and_ioremap_resource” then?
https://elixir.bootlin.com/linux/v5.8-rc4/source/drivers/base/platform.c#L66
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/base/platform.c?id=0dc589da873b58b70f4caf4b070fb0cf70fdd1dc#n66

Regards,
Markus
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help