From: Isaac Dunham Date: Wed, 5 Aug 2015 02:23:55 +0000 (-0700) Subject: modprobe: delete perror_exit() that makes no sense X-Git-Tag: accepted/tizen/mobile/20150902.004600^2^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=da8ad27856dfc6729dac8b6fe87d595a0eb9ca23;p=platform%2Fupstream%2Ftoybox.git modprobe: delete perror_exit() that makes no sense Given modprobe -a, it's important to not exit early for a failure to load a module; additionally, the rest of the code presumes that this can fail without exiting. --- diff --git a/toys/pending/modprobe.c b/toys/pending/modprobe.c index 5431cb3..12d2d78 100644 --- a/toys/pending/modprobe.c +++ b/toys/pending/modprobe.c @@ -381,7 +381,6 @@ static int ins_mod(char *modules, char *flags) } res = syscall(__NR_init_module, buf, len, toybuf); if (CFG_TOYBOX_FREE && buf != toybuf) free(buf); - if (res) perror_exit("failed to load %s ", toys.optargs[0]); return res; }