From 7c545e7b9a411536114d43c7d5ed8c95a2ebd56a Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 7 May 2023 00:58:39 +0100 Subject: [PATCH] base/dispatch.c: Check atomic copy of the probes flags, not the original. Rather defeats the point otherwise. --- base/dispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/dispatch.c b/base/dispatch.c index 309be5c3..4ce60159 100644 --- a/base/dispatch.c +++ b/base/dispatch.c @@ -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); } -- 2.11.0