]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: efidebug: check pointer after memory allocation
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 11 Jan 2024 08:25:35 +0000 (09:25 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 13 Jan 2024 17:17:47 +0000 (18:17 +0100)
commit55125bbfb48cb1330a692059bc972810f77b984a
treeb603968cc2de846e26382fd9e52945abf2391526
parentb20c9c3d8681547f7c839bb4f6fcd2f31e2b8585
cmd: efidebug: check pointer after memory allocation

After calling efi_alloc() we must check that the return value is not NULL.

Fixes: f01c961ee34c ("cmd: efidebug: add uri device path")
Addresses-Coverity-ID: 477185 Dereference null return value
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
cmd/efidebug.c