[U-Boot] [PATCH 1/3] dm: Prevent "demo hello" and "demo status" segfaults

Simon Glass sjg at chromium.org
Tue Feb 3 20:23:44 CET 2015


On 3 February 2015 at 12:18, Peter Tyser <ptyser at xes-inc.com> wrote:
> 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 at xes-inc.com>
> ---
>  common/cmd_demo.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Thanks!

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list