From: Denis Vlasenko Date: Sun, 14 Sep 2008 20:33:03 +0000 (-0000) Subject: modprobe-small: trivial SEGV fix X-Git-Tag: 1_13_0~190 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7c9c1bb61655d5d15a14dd7080e5bda0df43ef75;p=oweals%2Fbusybox.git modprobe-small: trivial SEGV fix --- 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) 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) {