projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b02836
)
libxc: check for xc_domain_get_guest_width failure in xc_domain_resume_any
author
Matthew Daley
<mattjd@gmail.com>
Wed, 30 Oct 2013 07:51:44 +0000
(20:51 +1300)
committer
Ian Campbell
<ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:30:28 +0000
(21:30 +0000)
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>
tools/libxc/xc_resume.c
patch
|
blob
|
history
diff --git
a/tools/libxc/xc_resume.c
b/tools/libxc/xc_resume.c
index cb6165049f2352223475f0c9369e6ac0b1a8ba64..50724f22d71fffb6fd60c79c2e0551701f7a29bb 100644
(file)
--- a/
tools/libxc/xc_resume.c
+++ b/
tools/libxc/xc_resume.c
@@
-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");