Whamcloud - gitweb
b22078 wrong value is used by parse_net
authorLiang Zhen <Zhen.Liang@sun.com>
Sun, 15 Aug 2010 16:46:00 +0000 (20:46 +0400)
committerMikhail Pershin <tappro@sun.com>
Mon, 16 Aug 2010 20:04:43 +0000 (00:04 +0400)
i=nathan i=robert i=qiang.wu

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));