search for: kernel_gfd

Displaying 1 result from an estimated 1 matches for "kernel_gfd".

Did you mean: kernel_fd
2005 Feb 19
0
[PATCH] check read/write return values
...if ( read(fd, &_sz, 4) != 4 ) + return 0; sz = _sz; } lseek(fd, 0, SEEK_SET); @@ -304,6 +306,12 @@ *size = xc_get_filesz(kernel_fd); + if ( *size == 0 ) + { + PERROR("Could not read kernel image"); + goto out; + } + if ( (kernel_gfd = gzdopen(kernel_fd, "rb")) == NULL ) { PERROR("Could not allocate decompression state for state file"); --- xen-unstable/tools/xentrace/xentrace.c.warn 2005-02-19 12:31:19.994379665 -0500 +++ xen-unstable/tools/xentrace/xentrace.c 2005-02-19 12:37:11.425091593 -...