From: Mike Frysinger Date: Wed, 21 Jun 2006 23:03:37 +0000 (-0000) Subject: Jean Wolter writes: modprobe checks, whether a module is already loaded. The function... X-Git-Tag: 1_2_0~96 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=135cee3741c3447730c2655604b1b947fc5fce07;p=oweals%2Fbusybox.git Jean Wolter writes: modprobe checks, whether a module is already loaded. The function used for this currently always returns 0. --- diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 14da0a729..6211c7d81 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -609,7 +609,7 @@ static int already_loaded (const char *name) } done: close (fd); - return 0; + return ret; } static int mod_process ( struct mod_list_t *list, int do_insert )