Browse Source
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>main
Jack Miller
10 years ago
committed by
David Gibson
3 changed files with 15 additions and 1 deletions
@ -0,0 +1,12 @@ |
|||||||
|
/dts-v1/; |
||||||
|
|
||||||
|
/ { |
||||||
|
mangled { |
||||||
|
#address-cells = <0x0>; |
||||||
|
#size-cells = <0x0>; |
||||||
|
|
||||||
|
valid { |
||||||
|
reg = <0x0 0x4000000>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
}; |
Loading…
Reference in new issue