9
0
Fork 0
barebox/drivers/of
Alexander Shiyan d3122cc0e8 of: Fix of_find_node_by_path breakage
This patch fixes breakage of of_find_node_by_path when
node not found in tree. This fault is caused, for example,
when no aliases is present in dtb.

barebox@ConnectCore i.MX51:/ oftree -d /env/mm.dtb
/ {
        model = "Freescale i.MX51 CCMX51";
        compatible = "fsl,imx51-ccmx51", "fsl,imx51";
        chosen {
        };
        cpus {
                cpu@0 {
                        compatible = "arm,cortex-a8";
                };
        };
};
barebox@ConnectCore i.MX51:/ oftree -p /env/mm.dtb
unable to handle NULL pointer dereference at address 0x00000000
pc : [<97f1f3f0>]    lr : [<97f19438>]
sp : 95eff988  ip : 00000001  fp : 97f43080
r10: 00000000  r9 : 97f4304c  r8 : 00000000
r7 : 00000000  r6 : e3510034  r5 : 00000001  r4 : 95f0eb28
r3 : 97f43054  r2 : 00000000  r1 : e1a0000b  r0 : 00000000
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32

no stack data available

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-01-25 19:25:01 +01:00
..
Kconfig of: add devicetree probing support 2012-09-14 11:47:42 +02:00
Makefile of gpio: Build gpio helper only when gpiolib is selected 2012-10-26 08:57:01 +02:00
base.c of: Fix of_find_node_by_path breakage 2013-01-25 19:25:01 +01:00
gpio.c of: add devicetree probing support 2012-09-14 11:47:42 +02:00
partition.c of: Add devicetree partition parsing 2012-09-14 11:47:42 +02:00