diff options
Diffstat (limited to 'tools/modprobe.c')
-rw-r--r-- | tools/modprobe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/modprobe.c b/tools/modprobe.c index a053efb..6b34658 100644 --- a/tools/modprobe.c +++ b/tools/modprobe.c @@ -386,7 +386,7 @@ static int rmmod_do_module(struct kmod_module *mod, bool do_dependencies) goto error; } - if (!ignore_loaded) { + if (!ignore_loaded && !cmd) { int usage = kmod_module_get_refcnt(mod); if (usage > 0) { |