Commit 64c46b09 authored by Jack Miller's avatar Jack Miller Committed by David Gibson
Browse files

Fix crash with poorly defined #size-cells



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: default avatarJack Miller <jack@codezen.org>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 9d3649bd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment