diff options
author | Denis Vlasenko | 2008-09-14 20:33:03 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-09-14 20:33:03 +0000 |
commit | 7c9c1bb61655d5d15a14dd7080e5bda0df43ef75 (patch) | |
tree | 23f206a18fedb827a335d44c48b644c54cd56e4c | |
parent | 0d602e9386cc651ca0ba534b309fce0582fa8e99 (diff) | |
download | busybox-7c9c1bb61655d5d15a14dd7080e5bda0df43ef75.zip busybox-7c9c1bb61655d5d15a14dd7080e5bda0df43ef75.tar.gz |
modprobe-small: trivial SEGV fix
-rw-r--r-- | modutils/modprobe-small.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c index e2bf828..8e765b2 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) free(deps); /* modprobe -> load it */ - if (!is_rmmod && !strstr(options, "blacklist")) { + if (!is_rmmod && (options && !strstr(options, "blacklist"))) { errno = 0; if (load_module(info->pathname, options) != 0) { if (EEXIST != errno) { |