aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-14 20:33:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-14 20:33:03 +0000
commit7c9c1bb61655d5d15a14dd7080e5bda0df43ef75 (patch)
tree23f206a18fedb827a335d44c48b644c54cd56e4c
parent0d602e9386cc651ca0ba534b309fce0582fa8e99 (diff)
downloadbusybox-w32-7c9c1bb61655d5d15a14dd7080e5bda0df43ef75.tar.gz
busybox-w32-7c9c1bb61655d5d15a14dd7080e5bda0df43ef75.tar.bz2
busybox-w32-7c9c1bb61655d5d15a14dd7080e5bda0df43ef75.zip
modprobe-small: trivial SEGV fix
-rw-r--r--modutils/modprobe-small.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index e2bf828b7..8e765b2ee 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -600,7 +600,7 @@ static void process_module(char *name, const char *cmdline_options)
600 free(deps); 600 free(deps);
601 601
602 /* modprobe -> load it */ 602 /* modprobe -> load it */
603 if (!is_rmmod && !strstr(options, "blacklist")) { 603 if (!is_rmmod && (options && !strstr(options, "blacklist"))) {
604 errno = 0; 604 errno = 0;
605 if (load_module(info->pathname, options) != 0) { 605 if (load_module(info->pathname, options) != 0) {
606 if (EEXIST != errno) { 606 if (EEXIST != errno) {