]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commit
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)
committerAnthony PERARD <anthony.perard@citrix.com>
Wed, 27 Feb 2013 12:05:55 +0000 (12:05 +0000)
commitb476634edcd58f23f35745e50b2fd92dd7e17208
tree71f0bcc4212f90aa21172d8c0bc8050e347325ef
parentbbfebc240d2eecc88cc4bd479bf2398159429a9e
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