From 92eb90fefbe404494c2f6bd44b7e4a343db87bc6 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 27 Oct 2005 22:54:42 +0000 Subject: [PATCH] Branch b_hd_newconfig b=9501 fix 'lctl net down' twice assert --- lnet/lnet/module.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lnet/lnet/module.c b/lnet/lnet/module.c index 730608a..ea5fa02 100644 --- a/lnet/lnet/module.c +++ b/lnet/lnet/module.c @@ -58,8 +58,10 @@ lnet_unconfigure (void) LNET_MUTEX_DOWN(&lnet_config_mutex); - if (the_lnet.ln_niinit_self) + if (the_lnet.ln_niinit_self) { + the_lnet.ln_niinit_self = 0; LNetNIFini(); + } LNET_MUTEX_DOWN(&the_lnet.ln_api_mutex); refcount = the_lnet.ln_refcount; -- 1.8.3.1