]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: check argc for acpi dump
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 9 Dec 2023 17:05:36 +0000 (18:05 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 13 Dec 2023 23:39:06 +0000 (18:39 -0500)
commitaafbe1daa5b108635c6c20ae9f3b83db358e1827
tree2505419aed6f2b4706837bc038a4d1d33c6b6d7c
parenteb09c33084ca2106fa669bee402abea4e6e437dd
cmd: check argc for acpi dump

'acpi dump' without parameter results in a NULL dereference. Check the
number of arguments.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/acpi.c