From 050c24f35c93857f1022f99834086ade54e70547 Mon Sep 17 00:00:00 2001 From: Andriy Gapon Date: Fri, 24 Dec 2021 13:14:13 +0200 Subject: 14326 dt_unring_buf: set dtbd_oldest to the start of the first record Reviewed by: Toomas Soome Reviewed by: Rich Lowe Approved by: Dan McDonald --- usr/src/lib/libdtrace/common/dt_consume.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/src/lib/libdtrace/common/dt_consume.c b/usr/src/lib/libdtrace/common/dt_consume.c index 807d60a79a..6e9187a804 100644 --- a/usr/src/lib/libdtrace/common/dt_consume.c +++ b/usr/src/lib/libdtrace/common/dt_consume.c @@ -2599,7 +2599,7 @@ dt_unring_buf(dtrace_hdl_t *dtp, dtrace_bufdesc_t *buf) bcopy(buf->dtbd_data, ndp, buf->dtbd_oldest); dt_free(dtp, buf->dtbd_data); - buf->dtbd_oldest = 0; + buf->dtbd_oldest = misalign; buf->dtbd_data = newdata; buf->dtbd_size += misalign; -- cgit v1.2.3