diff options
author | Robert Griebl <griebl@gmx.de> | 2002-07-29 20:28:38 +0000 |
---|---|---|
committer | Robert Griebl <griebl@gmx.de> | 2002-07-29 20:28:38 +0000 |
commit | 70112da81a5591d345dc7e8c9fd23e4e8bb67d17 (patch) | |
tree | 234c700395db9e5cc68157090072b0a276df1495 /modutils | |
parent | e7078068941944ebaa92b2129447e277f824ded0 (diff) | |
download | busybox-70112da81a5591d345dc7e8c9fd23e4e8bb67d17.tar.gz |
Fixed a bug that I had introduced with the new "options" handling.
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/modprobe.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 36d2aa211..1f4aebbd7 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c @@ -349,16 +349,17 @@ static void check_dep ( char *mod, struct mod_list_t **head, struct mod_list_t * struct dep_t *adt; for ( adt = depend; adt; adt = adt-> m_next ) { - if ( strcmp ( adt-> m_module, dt-> m_deparr [0] ) == 0 ) { - if ( !opt ) - opt = adt-> m_options; + if ( strcmp ( adt-> m_module, dt-> m_deparr [0] ) == 0 ) break; - } } - if ( !adt ) - return; + if ( adt ) { + dt = adt; + mod = dt-> m_module; + if ( !opt ) + opt = dt-> m_options; + } else - dt = adt; + return; } else return; |