From c1b84540bbe7aeb37f2b3384bced07cb88dbc674 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 15 Mar 2012 00:27:18 -0300 Subject: [PATCH] modprobe: always try to remove all modules in command line --- tools/kmod-modprobe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kmod-modprobe.c b/tools/kmod-modprobe.c index 3ab2a1c..aad5bf0 100644 --- a/tools/kmod-modprobe.c +++ b/tools/kmod-modprobe.c @@ -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 { -- 2.7.4