mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
not valid file descriptor is -1 not 0
This commit is contained in:
1 parent
3abb5c2914
commit
39b35eca80
1 file changed
+1
-1
@@ -108,7 +108,7 @@ xc_domain_dumpcore(int xc_handle,
|
||||
free(dump_mem_start);
|
||||
return 0;
|
||||
error_out:
|
||||
if (dump_fd)
|
||||
if (dump_fd != -1)
|
||||
close(dump_fd);
|
||||
free(dump_mem_start);
|
||||
return -1;
|
||||
|
||||