diff options
author | Matthew Daley <mattjd@gmail.com> | 2013-09-18 15:37:55 +1200 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-25 13:23:12 +0100 |
commit | 07fa854a43bfb52fb4abfe7865ef1fb0467bdba7 (patch) | |
tree | 3a090034235fa2dae431134c1f25e1d205af7983 /tools | |
parent | b865bda00f7cf5b0703e3d23ca22c8d1f607a1dd (diff) | |
download | xen-07fa854a43bfb52fb4abfe7865ef1fb0467bdba7.tar.gz xen-07fa854a43bfb52fb4abfe7865ef1fb0467bdba7.tar.bz2 xen-07fa854a43bfb52fb4abfe7865ef1fb0467bdba7.zip |
xenstored: fix faulty check for bad handle in domain_init
Coverity-ID: 1054975
Coverity-ID: 1055196
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/xenstore/xenstored_domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenstore/xenstored_domain.c b/tools/xenstore/xenstored_domain.c index bf83d5830b..f24bd6bd18 100644 --- a/tools/xenstore/xenstored_domain.c +++ b/tools/xenstore/xenstored_domain.c @@ -640,7 +640,7 @@ void domain_init(void) barf_perror("Failed to allocate domain gnttab handle"); *xcg_handle = xc_gnttab_open(NULL, 0); - if (*xcg_handle < 0) + if (*xcg_handle == NULL) xprintf("WARNING: Failed to open connection to gnttab\n"); else talloc_set_destructor(xcg_handle, close_xcg_handle); |