git: 9front

Download patch

ref: d442205e76d2c06400b4872919bcdabb6ad7a774
parent: 0106fca6d7e4f6de14dd9f914c0e64c6dfc226ef
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Feb 3 20:58:17 EST 2014

hjfs: fix wrong channel size for syncb (fixes amd64 crash)

--- a/sys/src/cmd/hjfs/buf.c
+++ b/sys/src/cmd/hjfs/buf.c
@@ -246,7 +246,7 @@
 		markfree(b++);
 	getb = chancreate(sizeof(BufReq), 0);
 	putb = chancreate(sizeof(Buf *), 32);
-	syncb = chancreate(sizeof(ulong), 0);
+	syncb = chancreate(sizeof(void*), 0);
 	proccreate(bufproc, nil, mainstacksize);
 }
 
--