commands: loady: fix bug with netconsole
Netconsole doesn't have a baudrate. Loady supposes a console has one,
and tries to compute the console's baudrate variable value, regardless
of its existence.

This triggers a NULL pointer dereference on netconsole. If attempting
loady on a netconsole is a bit useless, barebox should not panic. Fix
this by checking the variable exists before reading its value.

Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent b3c9bfd commit 424c4d73feb3f80fa5d6d6f784b8941a1540ab58
@Robert Jarzmik Robert Jarzmik authored on 1 Jan 2015
Sascha Hauer committed on 6 Jan 2015
Showing 1 changed file
View
commands/loadxy.c