modprobe: always try to remove all modules in command line
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 03:27:18 +0000 (00:27 -0300)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Thu, 15 Mar 2012 03:27:18 +0000 (00:27 -0300)
tools/kmod-modprobe.c

index 3ab2a1c..aad5bf0 100644 (file)
@@ -999,7 +999,7 @@ static int do_modprobe(int argc, char **orig_argv)
        else if (do_show_modversions)
                err = show_modversions(ctx, args[0]);
        else if (do_remove)
-               err = rmmod_all(ctx, args, use_all ? nargs : 1);
+               err = rmmod_all(ctx, args, nargs);
        else if (use_all)
                err = insmod_all(ctx, args, nargs);
        else {