Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Aug 2024 15:21:46 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 40bffb7d2124 - main - rangelocks: fix typo in rl_w_validate
Message-ID:  <202408211521.47LFLkqA067431@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=40bffb7d2124141b9f2970a4de93cf57f5fbd91b

commit 40bffb7d2124141b9f2970a4de93cf57f5fbd91b
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-08-20 22:07:10 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-08-21 15:20:28 +0000

    rangelocks: fix typo in rl_w_validate
    
    The freed elements should be threaded using rl_q_free pointer.
    
    Reported by:    dougm, markj
    Tested by:      markj
    Sponsored by:   The FreeBSD Foundation
---
 sys/kern/kern_rangelock.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/kern/kern_rangelock.c b/sys/kern/kern_rangelock.c
index ef9d0104af72..e3bb413ab1bb 100644
--- a/sys/kern/kern_rangelock.c
+++ b/sys/kern/kern_rangelock.c
@@ -596,7 +596,7 @@ again:
 		if (rl_e_is_marked(next)) {
 			next = rl_e_unmark(next);
 			if (rl_q_cas(prev, cur, next)) {
-				cur->rl_q_next = *free;
+				cur->rl_q_free = *free;
 				*free = cur;
 				cur = next;
 				continue;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202408211521.47LFLkqA067431>