git: 9front

Download patch

ref: e44da28de88bfd7ac2b6876254c34f06dcc1b409
parent: 2bd0b2065738a4afd3182f9fc25d10823e74dfa1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Apr 7 12:23:07 EDT 2024

kernel: zero Proc.lastlock and Proc.lastilock in newproc()

--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -712,6 +712,8 @@
 	p->syserrstr = p->errbuf1;
 	p->errbuf0[0] = '\0';
 	p->errbuf1[0] = '\0';
+	p->lastlock = nil;
+	p->lastilock = nil;
 	p->nlocks = 0;
 	p->delaysched = 0;
 	p->trace = 0;
--