Re: [PATCH 1/2] state: don't keep pointers to any device tree data

2016-09-15 Thread Michael Olbrich
On Thu, Sep 15, 2016 at 10:13:36AM +0200, Sascha Hauer wrote: > On Thu, Sep 15, 2016 at 08:10:13AM +0200, Michael Olbrich wrote: > > Caching pointers to device tree nodes or names is not save. The barebox > > internal device tree may be changed by loading a new device tree or through > > fixup hand

Re: [PATCH 1/2] state: don't keep pointers to any device tree data

2016-09-15 Thread Sascha Hauer
On Thu, Sep 15, 2016 at 08:10:13AM +0200, Michael Olbrich wrote: > Caching pointers to device tree nodes or names is not save. The barebox > internal device tree may be changed by loading a new device tree or through > fixup handlers. > Use local copies of the full path instead and resolve the node

[PATCH 1/2] state: don't keep pointers to any device tree data

2016-09-14 Thread Michael Olbrich
Caching pointers to device tree nodes or names is not save. The barebox internal device tree may be changed by loading a new device tree or through fixup handlers. Use local copies of the full path instead and resolve the node as needed. Signed-off-by: Michael Olbrich --- common/state/backend.c