summaryrefslogtreecommitdiff
path: root/modutils/modprobe.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-06 11:34:03 +0000
committerDenis Vlasenko2007-11-06 11:34:03 +0000
commitcb12cb240714f2599addd4ec61ef336ab87482cd (patch)
treeeb218e0c85ceb81753cb3a27535b93069d4ebb7a /modutils/modprobe.c
parent52816302299854ba1644fce98b5d19db526e6c29 (diff)
downloadbusybox-cb12cb240714f2599addd4ec61ef336ab87482cd.zip
busybox-cb12cb240714f2599addd4ec61ef336ab87482cd.tar.gz
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 f7d193a..dafbb4e 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
if (*tail)
(*tail)->m_next = find;
find->m_prev = *tail;
- /*find->m_next = NULL; - xzalloc did it */
+ find->m_next = NULL; /* possibly NOT done by xzalloc! */
if (!*head)
*head = find;