[PATCH] hush: bail out of scripts on syntax error

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed May 2 03:36:39 EDT 2012


On Wed, May 02, 2012 at 09:12:46AM +0200, Sascha Hauer wrote:
> On a systax error we have to bail out of the shell instead of
> setting inp->p to NULL and crash barebox with a NULL pointer
> deref. This only happened in scripts.
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
This fixes the problem I had (i.e. a boot loop caused by a stray fi in

Reported-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Tested-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>


Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

More information about the barebox mailing list