]> err.no Git - linux-2.6/commit
[PATCH] powerpc: Cope with duplicate node & property names in /proc/device-tree
authorMichael Ellerman <michael@ellerman.id.au>
Mon, 27 Mar 2006 03:26:26 +0000 (14:26 +1100)
committerPaul Mackerras <paulus@samba.org>
Tue, 28 Mar 2006 05:45:23 +0000 (16:45 +1100)
commit5149fa47ec90eb5e79e28f3a7fbcf29421524817
treec22023d68bbe23d273311185e284ead4c45d5edc
parentd0160bf0b3e87032be8e85f80ddd2f18e107b86f
[PATCH] powerpc: Cope with duplicate node & property names in /proc/device-tree

Various dodgy firmware might give us nodes and/or properties in the device
tree with conflicting names. That's generally ok, except for when we export
the device tree via /proc, so check when we're creating the proc device tree
and munge names accordingly.

Tested on a faked device tree with kexec, would be good if someone with
actual bogus firmware could try it, but just for completeness.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
fs/proc/proc_devtree.c