Whamcloud - gitweb
Revert "LU-5568 lnet: fix kernel crash when network failed to start"
[fs/lustre-release.git] / lnet / lnet / config.c
index a8960f9..a5661f9 100644 (file)
@@ -384,7 +384,7 @@ lnet_parse_networks(struct list_head *nilist, char *networks)
        LASSERT(!list_empty(nilist));
 
        LIBCFS_FREE(tokens, tokensize);
        LASSERT(!list_empty(nilist));
 
        LIBCFS_FREE(tokens, tokensize);
-       return nnets;
+       return 0;
 
  failed_syntax:
        lnet_syntax("networks", networks, (int)(tmp - tokens), strlen(tmp));
 
  failed_syntax:
        lnet_syntax("networks", networks, (int)(tmp - tokens), strlen(tmp));