Whamcloud - gitweb
b22078 wrong value is used by parse_net
[fs/lustre-release.git] / lustre / obdclass / obd_config.c
index 96c853a..9ebd6a5 100644 (file)
@@ -171,7 +171,7 @@ static int parse_nid(char *buf, void *value)
 
 static int parse_net(char *buf, void *value)
 {
-        __u32 *net = (__u32 *)net;
+        __u32 *net = (__u32 *)value;
 
         *net = libcfs_str2net(buf);
         CDEBUG(D_INFO, "Net %s\n", libcfs_net2str(*net));