]> git.sur5r.net Git - u-boot/commit
dm: Prevent "demo hello" and "demo status" segfaults
authorPeter Tyser <ptyser@xes-inc.com>
Tue, 3 Feb 2015 19:18:49 +0000 (13:18 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 12 Feb 2015 17:35:29 +0000 (10:35 -0700)
commitb922a5f94d960b0464f81b439c34707071095565
tree6ffcf7e124123b82664cac9b36f4cd849b30b06e
parent9009798df20f60fd53679b537fcb4df3460b7cf8
dm: Prevent "demo hello" and "demo status" segfaults

Segfaults can occur when a mandatory argument is not provided to
"demo hello" and "demo status".  Eg:

   => demo hello
   Segmentation fault (core dumped)

Add a check to ensure all required arguments are provided.

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/cmd_demo.c