Re: [PATCH] globalvar: fix crash if CONFIG_NVVAR is not set

2018-12-12 Thread Sascha Hauer
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

[PATCH] globalvar: fix crash if CONFIG_NVVAR is not set

2018-12-12 Thread Antony Pavlov
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