From 07fbce0ad31e752c5c8ba92820d3310ebcd2af87 Mon Sep 17 00:00:00 2001 From: nkj Date: Wed, 26 Jan 2005 12:44:13 +0000 Subject: [PATCH] landing patch for bug 5272 - making copy of list instead of using reference --- lustre/utils/lconf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lustre/utils/lconf b/lustre/utils/lconf index a4c793e..6de734a 100755 --- a/lustre/utils/lconf +++ b/lustre/utils/lconf @@ -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: -- 1.8.3.1