commit | 4d457fac3fdd915042db04b52262d22b18c9700c | [log] [tgz] |
---|---|---|
author | Andrew Goodbody <andrew.goodbody@linaro.org> | Wed Jul 02 10:24:16 2025 +0100 |
committer | Tom Rini <trini@konsulko.com> | Tue Jul 08 18:15:20 2025 -0600 |
tree | 45094c6a6d910a526fa565b55970348ce6254525 | |
parent | 130280dcdd5ef88861dcdc7a200147eb16133c78 [diff] |
boot: menu: Do not dereference pointer if pointer is NULL 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. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org> Reviewed-by: Tom Rini <trini@konsulko.com>