]> git.kernelconcepts.de Git - karo-tx-uboot.git/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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 11:50:44 +0000 (13:50 +0200)
commit3061c489be306b81f3779db16f73b8b925c9695b
tree814e3e2609788c15f63cf6f97f33454557b17c26
parent21176dcc3afc7302216713bf3aa8c6f5a6cb8a7f
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