← Commit list

1daa0c609

Eric Andersen
Eric Andersen
2004-03-19
FAILED Duration: 72s

Subject

As noted in a patch from Kendrick Hamilton, rmmod was only half way converted, and still used the old delete_module(), call rather than a syscall, in one spot.

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

modutils/rmmod.c+1 -4
@@ -29,9 +29,6 @@
#include <sys/syscall.h>
#include "busybox.h"
-extern int delete_module(const char * name);
-
-
extern int rmmod_main(int argc, char **argv)
{
int n, ret = EXIT_SUCCESS;
@@ -55,7 +52,7 @@ extern int rmmod_main(int argc, char **argv)
/* until the number of modules does not change */
buf = xmalloc(bufsize = 256);
while (nmod != pnmod) {
- if (delete_module(NULL))
+ if (syscall(__NR_delete_module, NULL, flags) < 0)
bb_perror_msg_and_die("rmmod");
pnmod = nmod;
/* 1 == QM_MODULES */