From 5f6834b693976b63f48fef8c20e3ca81a8e86817 Mon Sep 17 00:00:00 2001 From: Aidan Cully Date: Tue, 21 Nov 2017 19:37:46 -0500 Subject: [PATCH] ck_queue: fix logic inversion in CK_STAILQ_CONCAT. STAILQ_CONCAT transcription error lead to inversion of logic. It would only work for empty lists. --- include/ck_queue.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ck_queue.h b/include/ck_queue.h index c1e9872..30c384e 100644 --- a/include/ck_queue.h +++ b/include/ck_queue.h @@ -235,7 +235,7 @@ struct { \ * Singly-linked Tail queue functions. */ #define CK_STAILQ_CONCAT(head1, head2) do { \ - if ((head2)->stqh_first == NULL) { \ + if ((head2)->stqh_first != NULL) { \ ck_pr_store_ptr((head1)->stqh_last, (head2)->stqh_first); \ ck_pr_fence_store(); \ (head1)->stqh_last = (head2)->stqh_last; \