]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARC: make a copy of flat DT
authorVineet Gupta <vgupta@synopsys.com>
Thu, 21 Feb 2013 12:07:06 +0000 (17:37 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 26 Feb 2013 08:55:18 +0000 (14:25 +0530)
commiteab6a08c082b82dff884eb49a2229b0474d0b7e5
tree4acffa75b89ecdef8d4f38558155b0afdd2fbe19
parentfc32781bfdb56dad883469b65e468e749ef35fe5
ARC: make a copy of flat DT

The flat DT (currently embedded in vmlinux) is in .init section.
The unflattened/binary tree doesn't copy strings through and references
them from orig flat DT - which could cause catestrohpy if of_* APIs are
called post init, say from a driver which is a loadable module.

Reported-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/mach_desc.h
arch/arc/kernel/devtree.c
arch/arc/kernel/setup.c