History

force Chan pointer in namec() to volatile to fix miscompilation on arm64 (thanks oPless)

cinap_lenrek committed 2 years ago

Commit 162013b1 parent 59dda541 file · +1 −1Browse files

Unified · Split

kern/chan.c+1−1
@@ -1150,7 +1150,7 @@ Chan* · 1149 unmodified lines
11501150 namec(char *aname, int amode, int omode, ulong perm)
11511151 {
11521152 int len, n, t, nomount;
1153− Chan *c;
1153+ Chan *volatile c;
11541154 Chan *volatile cnew;
11551155 Path *volatile path;
11561156 Elemlist e;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t