Whamcloud - gitweb
landing patch for bug 5272 - making copy of list instead of using reference
authornkj <nkj>
Wed, 26 Jan 2005 12:44:13 +0000 (12:44 +0000)
committernkj <nkj>
Wed, 26 Jan 2005 12:44:13 +0000 (12:44 +0000)
lustre/utils/lconf

index a4c793e..6de734a 100755 (executable)
@@ -1110,7 +1110,8 @@ class kmod:
 
     def cleanup_module(self):
         """Unload the modules in the list in reverse order."""
-        rev = self.kmodule_list
+
+        rev = self.kmodule_list[:] # make *copy* of list
         rev.reverse()
         for src_dir, dev_dir, mod in rev:
             if not mod_loaded(mod) and not config.noexec: