ref: 162013b02e76608b9d5cd7f1d2db280e970c27ad
parent: 59dda5420c908820123fb597b20714206c3b63b2
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 17 17:47:28 EDT 2024
force Chan pointer in namec() to volatile to fix miscompilation on arm64 (thanks oPless)
--- a/kern/chan.c
+++ b/kern/chan.c
@@ -1150,7 +1150,7 @@
namec(char *aname, int amode, int omode, ulong perm)
{
int len, n, t, nomount;
- Chan *c;
+ Chan *volatile c;
Chan *volatile cnew;
Path *volatile path;
Elemlist e;