From bbab44f3533775e785680803bae67d35ee71aaa3 Mon Sep 17 00:00:00 2001 From: bluhm Date: Mon, 26 Oct 2015 14:12:13 +0000 Subject: [PATCH] Let SLIST_REMOVE invalidate the pointer in more cases. OK jsing@ --- sys/sys/queue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/queue.h b/sys/sys/queue.h index f8f09bf12e7..792fb6706fb 100644 --- a/sys/sys/queue.h +++ b/sys/sys/queue.h @@ -1,4 +1,4 @@ -/* $OpenBSD: queue.h,v 1.38 2013/07/03 15:05:21 fgsch Exp $ */ +/* $OpenBSD: queue.h,v 1.39 2015/10/26 14:12:13 bluhm Exp $ */ /* $NetBSD: queue.h,v 1.11 1996/05/16 05:17:14 mycroft Exp $ */ /* @@ -157,8 +157,8 @@ struct { \ curelm = curelm->field.sle_next; \ curelm->field.sle_next = \ curelm->field.sle_next->field.sle_next; \ - _Q_INVALIDATE((elm)->field.sle_next); \ } \ + _Q_INVALIDATE((elm)->field.sle_next); \ } while (0) /* -- 2.20.1