From 4f449a38643ddfaea1e22104cfba4113e6809027 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 24 Apr 2024 15:23:57 -0400 Subject: [PATCH] MT#55283 fix t_queue_move booboo Fix missing adjustment of destination tail pointer (with possibly catastrophic consequences) Change-Id: I26bf03b303c11ebeaf6ff09dccdf1689d4e010fa (cherry picked from commit 39087ebf498be77fc78b5198db6f179705a7522f) (cherry picked from commit 36d249ae7ae1b7602a16dffd2d9bc57c00988d88) --- lib/containers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/containers.h b/lib/containers.h index fc9e8a74a..827f31d38 100644 --- a/lib/containers.h +++ b/lib/containers.h @@ -311,6 +311,7 @@ else { \ __dst->tail->next = __src->head; \ __src->head->prev = __dst->tail; \ + __dst->tail = __src->tail; \ __dst->length += __src->length; \ t_queue_init(__src); \ } \