summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2021-12-24 13:14:13 +0200
committerToomas Soome <tsoome@me.com>2022-01-25 21:09:51 +0200
commit050c24f35c93857f1022f99834086ade54e70547 (patch)
tree8f4b93b80657bdde7b59df44932d8c0e99ca6448 /usr
parent817002c416c9301664eafbc288940123aa7d6fc9 (diff)
downloadillumos-gate-050c24f35c93857f1022f99834086ade54e70547.tar.gz
14326 dt_unring_buf: set dtbd_oldest to the start of the first record
Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Rich Lowe <richlowe@richlowe.net> Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/lib/libdtrace/common/dt_consume.c2
1 files changed, 1 insertions, 1 deletions
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;