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 98c31ed commit 9fc366d5fb373ef2faf66152bfb8c47b441e243f
@Robert Jarzmik Robert Jarzmik authored on 1 Jan 2015
Sascha Hauer committed on 6 Jan 2015
Showing 1 changed file
View
commands/loadxy.c