summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-07-27 22:35:18 +0000
committerJeremy Katz <katzj@redhat.com>2006-07-27 22:35:18 +0000
commit2dfc14a1cb37f50bba7f40791482dd312be93e95 (patch)
treece9987b058ef13d52f669e20bde6554fa1ea895c /loader2
parente19d12200b8be68b94ee6a71f2e7d7ac1eb24a91 (diff)
downloadanaconda-2dfc14a1cb37f50bba7f40791482dd312be93e95.tar.gz
anaconda-2dfc14a1cb37f50bba7f40791482dd312be93e95.tar.xz
anaconda-2dfc14a1cb37f50bba7f40791482dd312be93e95.zip
2006-07-27 Jeremy Katz <katzj@redhat.com>
* loader2/modstubs.c: Ignore options we don't understand to modprobe and properly handle the module not being in our modball
Diffstat (limited to 'loader2')
-rw-r--r--loader2/modstubs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/loader2/modstubs.c b/loader2/modstubs.c
index b42711332..86ef12d1b 100644
--- a/loader2/modstubs.c
+++ b/loader2/modstubs.c
@@ -118,6 +118,9 @@ int ourInsmodCommand(int argc, char ** argv) {
file = extractModule(argv[1], ballPath, version, &rmObj);
free(ballPath);
+ if (file == NULL)
+ return 1;
+
if (stat(file, &sb) == -1) {
logMessage(ERROR, "unable to stat file %s: %s", file, strerror(errno));
return 1;