ArmVirtPkg/FdtClientDxe: fix check for size of "reg" properties
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Sep 2016 12:48:15 +0000 (13:48 +0100)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Sep 2016 14:30:11 +0000 (15:30 +0100)
commit38ed4a9e3a65185e7e7b3c891feab1ddc865fdb5
treeab91ddd97e1f954d572baf251c9a73a3df66da26
parentf8db6527da8678f1480f08ba99b745279e8d104a
ArmVirtPkg/FdtClientDxe: fix check for size of "reg" properties

Currently, the code in FdtClientDxe assumes #address-cells/#size-cells
values of <2>. Since DT "reg" properties always consist of <base, size>
tuples, this means the size of the entire property should always be a
multiple of 16 bytes (i.e, 4 * sizeof(UINT32), not 8. So fix this.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
ArmVirtPkg/FdtClientDxe/FdtClientDxe.c