Whamcloud - gitweb
Branch b_hd_newconfig
authornathan <nathan>
Tue, 11 Oct 2005 19:26:40 +0000 (19:26 +0000)
committernathan <nathan>
Tue, 11 Oct 2005 19:26:40 +0000 (19:26 +0000)
r=eeb
only drop self-reference on error, not already-initted return value

lnet/lnet/module.c

index 8541ea6..69e9003 100644 (file)
@@ -80,7 +80,7 @@ lnet_configure (void *arg)
         LNET_MUTEX_UP(&the_lnet.ln_api_mutex);
 
         rc = LNetNIInit(LUSTRE_SRV_LNET_PID);
-        if (rc != 0) {
+        if (rc < 0) {
                 LNET_MUTEX_DOWN(&the_lnet.ln_api_mutex);
                 the_lnet.ln_niinit_self = 0;
                 LNET_MUTEX_UP(&the_lnet.ln_api_mutex);