commit | 9001fa19fc28309f6bbd62c7bbd10e0ef6a07fd6 | [log] [tgz] |
---|---|---|
author | Peter Tyser <ptyser@xes-inc.com> | Tue Feb 03 13:18:49 2015 -0600 |
committer | Simon Glass <sjg@chromium.org> | Thu Feb 12 10:35:29 2015 -0700 |
tree | 6ffcf7e124123b82664cac9b36f4cd849b30b06e | |
parent | b58cf4f08eaa40ca8e462c92fb3054767e7c7690 [diff] |
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>