From c3eab5cf4e6ce00b3ad16f9409d4aed077e69d87 Mon Sep 17 00:00:00 2001 From: Anoop Saldanha Date: Fri, 22 Jun 2012 23:49:44 +0530 Subject: [PATCH] Replace the old atomic sets using cas with the new sc_atomic_set macro --- src/detect-engine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 6ae7d84846..634f0aec7b 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -227,8 +227,7 @@ static void *DetectEngineLiveRuleSwap(void *arg) } - BUG_ON(SC_ATOMIC_CAS(&slots->slot_data, SC_ATOMIC_GET(slots->slot_data), - det_ctx) == 0);; + SC_ATOMIC_SET(slots->slot_data, det_ctx); SCLogDebug("swapping new det_ctx with older one"); slots = slots->slot_next;