[PATCH] commands: loady: fix bug with netconsole

Sascha Hauer s.hauer at pengutronix.de
Mon Jan 5 04:12:35 PST 2015


On Thu, Jan 01, 2015 at 09:04:21PM +0100, Robert Jarzmik wrote:
> 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 at free.fr>

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list