Page MenuHomeFreeBSD

D38360.diff
No OneTemporary

D38360.diff

diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
--- a/sys/kern/kern_jail.c
+++ b/sys/kern/kern_jail.c
@@ -771,7 +771,7 @@
mem = &pr->pr_addrs[af];
old = *mem;
- ck_pr_store_ptr(mem, new);
+ atomic_store_ptr(mem, new);
prison_ip_free(old);
}
@@ -897,7 +897,7 @@
in_epoch(net_epoch_preempt) ||
sx_xlocked(&allprison_lock));
- pip = ck_pr_load_ptr(&pr->pr_addrs[af]);
+ pip = atomic_load_ptr(&pr->pr_addrs[af]);
if (__predict_false(pip == NULL))
return (EAFNOSUPPORT);

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 3:18 AM (19 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16121329
Default Alt Text
D38360.diff (508 B)

Event Timeline