Commit 21a1c6ec authored by Antonio Borneo's avatar Antonio Borneo Committed by Øyvind Harboe
Browse files

NAND/TCL: fix segfault on syntax error



Fix segfault if incomplete command "nand device dummy"
is executed.

Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
parent 7bb79f0f
......@@ -572,7 +572,7 @@ static COMMAND_HELPER(create_nand_device, const char *bank_name,
COMMAND_HANDLER(handle_nand_device_command)
{
if (CMD_ARGC < 1)
if (CMD_ARGC < 2)
{
LOG_ERROR("incomplete nand device configuration");
return ERROR_FLASH_BANK_INVALID;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment