[PATCH v2] boot: menu: Do not dereference pointer if pointer is NULL

Tom Rini trini at konsulko.com
Wed Jul 9 16:22:05 CEST 2025


On Wed, 02 Jul 2025 10:24:16 +0100, Andrew Goodbody wrote:

> scene_obj_find can return NULL but this is not checked for before
> the return is dereferenced. Add a NULL check.
> 
> This issue was found by Smatch.
> 
> Also add a NULL check for str.
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] boot: menu: Do not dereference pointer if pointer is NULL
      commit: 074e05952705972072f52128cf2e3ec2d8f35de6
-- 
Tom




More information about the U-Boot mailing list