shithub: riscv

Download patch

ref: 659943558fcb6a04f5e4b1bf11aa2cb4c1a5065c
parent: 367b4be219f0513546e5df5f73f33658626bdfd3
author: cinap_lenrek <cinap_lenrek@rei2>
date: Mon Jan 9 16:33:22 EST 2012

kernel: keep segment locked for data2txt

--- a/sys/src/9/port/segment.c
+++ b/sys/src/9/port/segment.c
@@ -186,9 +186,10 @@
 
 	case SG_DATA:		/* Copy on write plus demand load info */
 		if(segno == TSEG){
+			n = data2txt(s);
 			poperror();
 			qunlock(&s->lk);
-			return data2txt(s);
+			return n;
 		}
 
 		if(share)