base/dispatch.c: Check atomic copy of the probes flags, not the original.
[catacomb] / base / dispatch.c
index 309be5c..4ce6015 100644 (file)
@@ -413,7 +413,7 @@ static unsigned get_hwcaps(void)
   unsigned hw;
 
   DISPATCH_LOAD(hwcaps, hw);
-  if (!(hwcaps & HF_PROBED)) { probe_hwcaps(); DISPATCH_LOAD(hwcaps, hw); }
+  if (!(hw & HF_PROBED)) { probe_hwcaps(); DISPATCH_LOAD(hwcaps, hw); }
   return (hw);
 }