xen/xen_initial_domain: check that xen_start_info is initialized
authorStefano Stabellini <Stefano.Stabellini@eu.citrix.com>
Wed, 3 Oct 2012 17:08:52 +0000 (18:08 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 3 Oct 2012 17:03:32 +0000 (13:03 -0400)
commit4ed5978bdd99114db7773cb3d78f2998bd17f694
tree7d4cf90f362dfcda4fc7fbc7fca3baec433b1eb7
parent2e3d88602814e5fd5b88d5c73be3305060c473b6
xen/xen_initial_domain: check that xen_start_info is initialized

Since commit commit 4c071ee5268f7234c3d084b6093bebccc28cdcba ("arm:
initial Xen support") PV on HVM guests can be xen_initial_domain.
However PV on HVM guests might have an unitialized xen_start_info, so
check before accessing its fields.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
Reported-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
include/xen/xen.h