commit | 48d7a771e35c71b78df90afcd06370ab7e1fda5d | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | Thu Mar 02 04:08:18 2023 +0100 |
committer | Simon Glass <sjg@chromium.org> | Wed Mar 08 11:40:57 2023 -0800 |
tree | 868a383974c3413d9b488bdfaadce71018a7f2cd | |
parent | 794c8e6d665708b3a9e474c9ad4e7da70b72b70b [diff] |
cmd: fdt: Check argc before accessing argv in fdt bootcpu On case 'fdt bootcpu' is invoked without parameters, argv[2] is not valid and this command would SEGFAULT in sandbox environment. Add missing argc test to avoid the crash and rather print usage help message. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Simon Glass <sjg@chromium.org>