Whamcloud - gitweb
Branch HEAD
authorliangzhen <liangzhen>
Wed, 8 Aug 2007 14:46:19 +0000 (14:46 +0000)
committerliangzhen <liangzhen>
Wed, 8 Aug 2007 14:46:19 +0000 (14:46 +0000)
Initialize cpumask before use
b=13288

lnet/ChangeLog
lnet/klnds/socklnd/socklnd_cb.c

index 5906642..1e8a65c 100644 (file)
        ptllnd    - Portals 3.3 / UNICOS/lc 1.5.x, 2.0.x
        * bug fixes
 
+Severity   : minor
+Bugzilla   : 13288
+Description: Initialize cpumask before use
+
 Severity   : major
 Bugzilla   : 12014
 Description: ASSERTION failures when upgrading to the patchless zero-copy
index 71d08ae..41cb248 100644 (file)
@@ -1527,7 +1527,7 @@ int ksocknal_scheduler (void *arg)
 #if defined(CONFIG_SMP) && defined(CPU_AFFINITY)
         id = ksocknal_sched2cpu(id);
         if (cpu_online(id)) {
-                cpumask_t m;
+                cpumask_t m = CPU_MASK_NONE;
                 cpu_set(id, m);
                 set_cpus_allowed(current, m);
         } else {