[PATCH v2] boot: cedit: Check ofnode_read_prop return value
Simon Glass
sjg at chromium.org
Mon May 25 17:15:01 CEST 2026
On 2026-05-18T14:39:27, Francois Berder <fberder at outlook.fr> wrote:
> boot: cedit: Check ofnode_read_prop return value
>
> In h_read_settings, val variable could be NULL due to
> ofnode_read_prop returning an error. This variable
> would then be used as the src in strcpy.
>
> Add a NULL check after calling ofnode_read_prop.
>
> Signed-off-by: Francois Berder <fberder at outlook.fr>
>
> boot/cedit.c | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list