From: Felix Fietkau Date: Wed, 23 Jul 2025 09:49:27 +0000 (+0200) Subject: udebug: fix issue with snapshot of remote ring X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=49056d178f42da98048a5d4c23f83a6f6bc6dd80;p=project%2Flibubox.git udebug: fix issue with snapshot of remote ring Avoid skipping over the current ring head Signed-off-by: Felix Fietkau --- 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;