HomeFreeBSD

queue: Fix STAILQ_SWAP

Description

queue: Fix STAILQ_SWAP

The debug assertions added in commit 34740937f7a4 do not hold for a
window in STAILQ_SWAP, so check whether the queues are empty directly.

Reported by: ler
Fixes: 34740937f7a4 ("queue: New debug macros for STAILQ")

(cherry picked from commit da2c88dfcf4f425e6e0a58d6df3a7c8e88d8df92)

Details

Provenance
markjAuthored on Dec 17 2024, 12:12 AM
olceCommitted on Thu, Jan 16, 6:07 PM
Parents
rGfce2a3509a65: atomics: Constify loads: Fix powerpc build
Branches
Unknown
Tags
Unknown