xen/dts: Check "reg" property length in process_multiboot_node
authorJulien Grall <julien.grall@linaro.org>
Fri, 13 Sep 2013 12:49:14 +0000 (13:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 17 Sep 2013 14:27:59 +0000 (15:27 +0100)
commit1fccdfce51ec3367515f73c59765611ed67e747b
tree974ab0c0ff5fc94e8f6090e1f8e84d2e820ae1a9
parent57e835e51420bf1ff793524bbd815a85291c51e4
xen/dts: Check "reg" property length in process_multiboot_node

The device tree compiler (dtc) will only warn if the "reg" property doesn't
match #address-cells and #size-cells size. It won't update the different
property. Therefore, Xen needs to check if the size match both properties,
otherwise Xen can retrieve a wrong range.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/common/device_tree.c