state: copy backend of_path string
Caching pointers to device tree nodes or names is not safe. The barebox
internal device tree may be changed by loading a new device tree or through
fixup handlers. As a result, the string may be deleted.
Use local copies of the full path instead.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent cc6ad94 commit 8722a342bbc95614b2297eb4698769df6e6ca7e2
@Michael Olbrich Michael Olbrich authored on 16 Sep 2016
Sascha Hauer committed on 31 Mar 2017
Showing 2 changed files
View
src/barebox-state/backend.c
View
src/barebox-state/state.h