[PATCH v2] ofnode: NULL check bootscr_flash_size before dereference
Tom Rini
trini at konsulko.com
Mon Jul 7 21:58:38 CEST 2025
On Mon, Jul 07, 2025 at 11:04:29AM +0100, Andrew Goodbody wrote:
> Move the NULL check of bootscr_flash_size to before the first time it is
> dereferenced to avoid any possible segment violations.
>
> This issue found by Smatch.
>
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250707/aad7a732/attachment.sig>
More information about the U-Boot
mailing list