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")

Details

Provenance
markjAuthored on Tue, Dec 17, 12:12 AM
Parents
rG950401d21e33: release: Sort etcupdate entries for base metalog
Branches
Unknown
Tags
Unknown