mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
libxc: check for xc_domain_get_guest_width failure in xc_domain_resume_any
Coverity-ID: 1090351 Signed-off-by: Matthew Daley <mattjd@gmail.com> Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
1 parent
6b0283689a
commit
e1fde2acce
1 file changed
+5
-1
@@ -134,7 +134,11 @@ static int xc_domain_resume_any(xc_interface *xch, uint32_t domid)
|
||||
return rc;
|
||||
}
|
||||
|
||||
xc_domain_get_guest_width(xch, domid, &dinfo->guest_width);
|
||||
if ( xc_domain_get_guest_width(xch, domid, &dinfo->guest_width) != 0 )
|
||||
{
|
||||
PERROR("Could not get domain width");
|
||||
return rc;
|
||||
}
|
||||
if ( dinfo->guest_width != sizeof(long) )
|
||||
{
|
||||
ERROR("Cannot resume uncooperative cross-address-size guests");
|
||||
|
||||