From: nkj Date: Wed, 26 Jan 2005 12:44:13 +0000 (+0000) Subject: landing patch for bug 5272 - making copy of list instead of using reference X-Git-Tag: v1_8_0_110~486^5~55 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=07fbce0ad31e752c5c8ba92820d3310ebcd2af87;p=fs%2Flustre-release.git landing patch for bug 5272 - making copy of list instead of using reference --- 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: