[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 16/28] libxl: fix file open failure check in libxl__file_reference_map
Coverity-ID: 1055567 Signed-off-by: Matthew Daley <mattjd@xxxxxxxxx> --- tools/libxl/libxl_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_internal.c b/tools/libxl/libxl_internal.c index 5a8cd38..cf17658 100644 --- a/tools/libxl/libxl_internal.c +++ b/tools/libxl/libxl_internal.c @@ -228,7 +228,7 @@ int libxl__file_reference_map(libxl__file_reference *f) return 0; fd = open(f->path, O_RDONLY); - if (f < 0) + if (fd < 0) return ERROR_FAIL; ret = fstat(fd, &st_buf); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |