On Wed, Dec 12, 2018 at 03:01:03PM +0300, Antony Pavlov wrote: > At the moment globalvar code tries to use nv_device > even if nv_device is not registered. > > How to reproduce the problem: > > barebox$ make sandbox_defconfig > ... > barebox$ sed -i "s/\(CONFIG_NVVAR\)=y/# \1 is not set/" .config > barebox$ sed -i "s/\(CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW\)=y/# \1 is not set\n# CONFIG_DEFAULT_ENVIRONMENT_GENERIC is not set/" .config > barebox$ make oldconfig > ... > barebox$ make > ... > barebox$ ./barebox > Segmentation fault > > This patch blocks nv_device use if CONFIG_NVVAR is not set. > > Signed-off-by: Antony Pavlov <antonynpavlov@xxxxxxxxx> > --- 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 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox