aboutsummaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 11:34:03 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-11-06 11:34:03 +0000
commitcb12cb240714f2599addd4ec61ef336ab87482cd (patch)
treeeb218e0c85ceb81753cb3a27535b93069d4ebb7a /modutils/modprobe.c
parent52816302299854ba1644fce98b5d19db526e6c29 (diff)
downloadbusybox-w32-cb12cb240714f2599addd4ec61ef336ab87482cd.tar.gz
busybox-w32-cb12cb240714f2599addd4ec61ef336ab87482cd.tar.bz2
busybox-w32-cb12cb240714f2599addd4ec61ef336ab87482cd.zip
modprobe: fix a bug where we were entering endless loop
syslogd: strip trailing '\n' too, not only NULs
Diffstat (limited to 'modutils/modprobe.c')
-rw-r--r--modutils/modprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c
index f7d193a05..dafbb4ecd 100644
--- a/modutils/modprobe.c
+++ b/modutils/modprobe.c
@@ -791,7 +791,7 @@ static void check_dep(char *mod, struct mod_list_t **head, struct mod_list_t **t
791 if (*tail) 791 if (*tail)
792 (*tail)->m_next = find; 792 (*tail)->m_next = find;
793 find->m_prev = *tail; 793 find->m_prev = *tail;
794 /*find->m_next = NULL; - xzalloc did it */ 794 find->m_next = NULL; /* possibly NOT done by xzalloc! */
795 795
796 if (!*head) 796 if (!*head)
797 *head = find; 797 *head = find;