summaryrefslogtreecommitdiffstats
path: root/loader/modules.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-04-19 04:00:56 +0000
committerJeremy Katz <katzj@redhat.com>2002-04-19 04:00:56 +0000
commit4901a0b241117f04d682973053ae98d4839dc5c9 (patch)
tree074202b72db416d5bf7c99e547865e2f6edd25ff /loader/modules.c
parenta8fa8bebd84c13bc3723bb15a3efbc0a37dd4973 (diff)
downloadanaconda-4901a0b241117f04d682973053ae98d4839dc5c9.tar.gz
anaconda-4901a0b241117f04d682973053ae98d4839dc5c9.tar.xz
anaconda-4901a0b241117f04d682973053ae98d4839dc5c9.zip
get the easy bits of the merge first.... hampton loader and isys directories
should be fine since I had originally just copied them into hampton from head :)
Diffstat (limited to 'loader/modules.c')
-rw-r--r--loader/modules.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/loader/modules.c b/loader/modules.c
index ffb0fc536..58671ca47 100644
--- a/loader/modules.c
+++ b/loader/modules.c
@@ -475,7 +475,6 @@ static struct extractedModule * extractModules (struct driverDiskInfo * ddi,
free(ballPath);
return NULL;
}
- free(ballPath);
for (m = modNames, i = 0; *m; i++, m++);
@@ -501,6 +500,7 @@ static struct extractedModule * extractModules (struct driverDiskInfo * ddi,
/* nothing to do */
if (!numMaps) {
gunzip_close(fd);
+ free(ballPath);
return oldPaths;
}
@@ -526,6 +526,7 @@ static struct extractedModule * extractModules (struct driverDiskInfo * ddi,
}
}
+ free(ballPath);
return oldPaths;
}
@@ -597,6 +598,7 @@ static int doLoadModules(const char * origModNames, moduleList modLoaded,
i = 0;
if (!paths) {
logMessage("no modules found -- aborting insertion");
+ return i;
i++;
} else {
*items = '\0';
@@ -684,7 +686,7 @@ int mlModuleInList(const char * modName, moduleList list) {
int mlWriteConfModules(moduleList list, int fd) {
int i;
struct loadedModuleInfo * lm;
- char buf[16384], buf2[1024];
+ char buf[16384], buf2[512];
int scsiNum;
int ethNum;
int trNum = 0;