shithub: riscv

Download patch

ref: 381da3192f22f6e4909f7a093776e91ba6a9f93b
parent: e38d42b4a7f278a7f7835e07983115e4ee1b0db4
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jan 4 00:07:52 EST 2024

kernel: fix typo in sema assert= vs == (thanks moody)

--- a/sys/src/9/port/segment.c
+++ b/sys/src/9/port/segment.c
@@ -110,7 +110,7 @@
 		return;
 
 	assert(s->sema.prev == &s->sema);
-	assert(s->sema.next = &s->sema);
+	assert(s->sema.next == &s->sema);
 
 	if(s->mapsize > 0){
 		emap = &s->map[s->mapsize];