summaryrefslogtreecommitdiffstats
path: root/isys/vio.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-06-23 19:02:38 +0000
committerJeremy Katz <katzj@redhat.com>2003-06-23 19:02:38 +0000
commitc8c0190205336f69c1a94f890a28a3e040565a97 (patch)
treee14cbf45307c02955d4e358dfb7e584026346953 /isys/vio.c
parentd1636e475e29facfa7c08db38d4845a9bfe682e7 (diff)
downloadanaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.gz
anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.tar.xz
anaconda-c8c0190205336f69c1a94f890a28a3e040565a97.zip
merge from taroon. highlights of this time around
* ppc boot constraints * md5 endianness * don't prompt to save tracebacks to a floppy without a floppy * autopart for kickstart * network configuration in the loader if vnc/display case
Diffstat (limited to 'isys/vio.c')
-rw-r--r--isys/vio.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/isys/vio.c b/isys/vio.c
index 1d4ffb13f..be4062315 100644
--- a/isys/vio.c
+++ b/isys/vio.c
@@ -41,7 +41,6 @@ int vioGetCdDevs(struct knownDevices * devices) {
i = readFD(fd, &buf);
if (i < 1) {
close(fd);
- free (buf);
fprintf(stderr, "error reading /proc/iSeries/viocd!\n");
return 1;
}
@@ -120,7 +119,6 @@ int vioGetDasdDevs(struct knownDevices * devices) {
i = readFD(fd, &buf);
if (i < 1) {
close(fd);
- free (buf);
fprintf(stderr, "error reading /proc/iSeries/viodasd!\n");
return 1;
}
@@ -191,12 +189,14 @@ int isVioConsole(void) {
return 0;
}
i = readFD(fd, &buf);
- if (i == -1) {
+ if (i < 1) {
close(fd);
- free(buf);
fprintf(stderr, "error reading /proc/tty/drivers!\n");
return 0;
}
+ close(fd);
+ buf[i] = '\0';
+
isviocons = 0;
start = buf;
while (start && *start) {