Page MenuHomeFreeBSD

D33260.1780027872.diff
No OneTemporary

Size
626 B
Referenced Files
None
Subscribers
None

D33260.1780027872.diff

diff --git a/sys/net/if.c b/sys/net/if.c
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -350,7 +350,7 @@
if (__predict_false(idx > V_if_index))
return (NULL);
- return (V_ifindex_table[idx]);
+ return (ck_pr_load_ptr(&V_ifindex_table[idx]));
}
struct ifnet *
@@ -403,7 +403,7 @@
IFNET_WLOCK_ASSERT();
- V_ifindex_table[idx] = NULL;
+ ck_pr_store_ptr(&V_ifindex_table[idx], NULL);
while (V_if_index > 0 &&
V_ifindex_table[V_if_index] == NULL)
V_if_index--;
@@ -414,7 +414,7 @@
{
ifp->if_index = idx;
- V_ifindex_table[idx] = ifp;
+ ck_pr_store_ptr(&V_ifindex_table[idx], ifp);
}
struct ifaddr *

File Metadata

Mime Type
text/plain
Expires
Fri, May 29, 4:11 AM (19 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28802893
Default Alt Text
D33260.1780027872.diff (626 B)

Event Timeline