patch-2.4.10 linux/drivers/ieee1394/highlevel.c

Next file: linux/drivers/ieee1394/ieee1394_core.c
Previous file: linux/drivers/ide/via82cxxx.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.9/linux/drivers/ieee1394/highlevel.c linux/drivers/ieee1394/highlevel.c
@@ -157,15 +157,16 @@
 #define DEFINE_MULTIPLEXER(Function) \
 void highlevel_##Function(struct hpsb_host *host) \
 { \
-        struct list_head *entry; \
+        struct list_head *entry,*next; \
         void (*funcptr)(struct hpsb_host*); \
         read_lock(&hl_drivers_lock); \
         entry = hl_drivers.next; \
         while (entry != &hl_drivers) { \
+        	next = entry->next; \
                 funcptr = list_entry(entry, struct hpsb_highlevel, hl_list) \
                           ->op->Function; \
                 if (funcptr) funcptr(host); \
-                entry = entry->next; \
+                entry = next; \
         } \
         read_unlock(&hl_drivers_lock); \
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)