64c46b098b
If you have a parent block with #size-cells improperly set to 0, and then subsequently try to include a regs property in the child, dtc will crash with SIGFPE while validating it. This patch fixes that crash, instead printing the same invalid length warning that was causing it. Test included. Signed-off-by: Jack Miller <jack@codezen.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
12 lines
142 B
Text
12 lines
142 B
Text
/dts-v1/;
|
|
|
|
/ {
|
|
mangled {
|
|
#address-cells = <0x0>;
|
|
#size-cells = <0x0>;
|
|
|
|
valid {
|
|
reg = <0x0 0x4000000>;
|
|
};
|
|
};
|
|
};
|