patch-2.4.3 linux/drivers/ieee1394/ieee1394_core.c

Next file: linux/drivers/ieee1394/ohci1394.c
Previous file: linux/drivers/ieee1394/guid.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/drivers/ieee1394/ieee1394_core.c linux/drivers/ieee1394/ieee1394_core.c
@@ -269,7 +269,7 @@
         }
 
         /* set self mapping */
-        for (i = nodecount - 1; i; i--) {
+        for (i = 0; i < nodecount; i++) {
                 map[64*i + i] = speedcap[i];
         }
 
@@ -802,6 +802,12 @@
         init_ieee1394_guid();
 
         return 0;
+}
+
+void cleanup_module(void)
+{
+        cleanup_ieee1394_guid();
+        cleanup_csr();
 }
 
 #endif

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