[PATCH] spi: wpcm-fiu: Fix potential NULL pointer dereference in wpcm_fiu_probe()
Markus Elfring
Markus.Elfring at web.de
Fri Feb 13 19:54:09 AEDT 2026
> platform_get_resource_byname() can return NULL, which would cause a crash
> when passed the pointer to resource_size().
>
> Move the fiu->memory_size assignment after the error check for
> devm_ioremap_resource() to prevent the potential NULL pointer dereference.
Were any source code analysis tools involved here?
Regards,
Markus
More information about the openbmc
mailing list