From 49056d178f42da98048a5d4c23f83a6f6bc6dd80 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Jul 2025 11:49:27 +0200 Subject: [PATCH] udebug: fix issue with snapshot of remote ring Avoid skipping over the current ring head Signed-off-by: Felix Fietkau --- udebug-remote.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/udebug-remote.c b/udebug-remote.c index d4d9ed5..7fa0b3a 100644 --- a/udebug-remote.c +++ b/udebug-remote.c @@ -134,6 +134,9 @@ rbuf_advance_read_head(struct udebug_remote_buf *rb, uint32_t head, __sync_synchronize(); } + if (rb->head == head) + break; + if (ptr->timestamp > last_ptr->timestamp) continue; -- 2.30.2