[usb_host] Fix EventPool/LockFreeQueue sizing off-by-one (#14896)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2026-03-18 11:17:59 +13:00
1 parent 97382ed814
commit c19c75220b
2 files changed
+6 -2

No files matched your search

@@ -193,7 +193,8 @@ static void client_event_cb(const usb_host_client_event_msg_t *event_msg, void *
return;
}
// Push to lock-free queue (always succeeds since pool size == queue size)
// Push always succeeds: pool is sized to queue capacity (SIZE-1), so if
// allocate() returned non-null, the queue cannot be full.
client->event_queue.push(event);
// Re-enable component loop to process the queued event