From: Bjorn Ekwall <bj0rn@blox.se>
Subject: Modutils in the middle of the nigt...
To: linux-kernel@vger.rutgers.edu
Date: Sat, 20 Mar 1999 12:16:19 +0100 (CET)
Please patch -pre4 with this.
Never, never ever move code around in the early morning hours....
Bjorn
--- insmod/modprobe.c 1999/03/20 00:35:01 1.20
+++ insmod/modprobe.c 1999/03/20 11:07:14
@@ -314,11 +314,12 @@
for (lp = desc->name; lp; lp = lp->next) {
if ((g = extradeps(abovelist, (char *)lp->item, NULL))) {
for (i = 0; i < g->pathc; ++i) {
+ LINK *up;
/* Already there? */
- for (lp = *stack; lp; lp = lp->next)
- if (strcmp(g->pathv[i], ((DESC *)(lp->item))->kname) == 0)
+ for (up = *stack; up; up = up->next)
+ if (strcmp(g->pathv[i], ((DESC *)(up->item))->kname) == 0)
break;
- if (lp == NULL) { /* Not already there */
+ if (up == NULL) { /* Not already there */
r = build_stack(stack, g->pathv[i],
NULL, dir,
rev ? rev : desc);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/