xen/arm: domain_build: Require the property "cpus" when building a domU
authorJulien Grall <julien.grall@arm.com>
Mon, 18 Feb 2019 10:14:36 +0000 (10:14 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Mon, 25 Feb 2019 22:27:29 +0000 (14:27 -0800)
commitcc85de570c7ed91b32f123bef35e4ac2692cbfef
treee1b51ae2560a3a5616f60deb0e4b3f3eac6f9812
parent83ba64c3ebf0e8d3834e3e5b79acb2ceb2cd9bba
xen/arm: domain_build: Require the property "cpus" when building a domU

The 3rd argument of function dt_property_read_u32() is only valid when
the call succeeded. So we cannot assume the value will not be modifed
in case of failure.

The documentation of Dom0less does not give a default value when the
property "cpus" is not set. So require the property in the configuration.

Coverity-ID: 1476825
Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/arch/arm/domain_build.c