Page MenuHomeFreeBSD

D46968.id144346.diff
No OneTemporary

D46968.id144346.diff

diff --git a/sys/kern/subr_pctrie.c b/sys/kern/subr_pctrie.c
--- a/sys/kern/subr_pctrie.c
+++ b/sys/kern/subr_pctrie.c
@@ -304,7 +304,8 @@
if (pctrie_isleaf(node)) {
if (node == PCTRIE_NULL) {
if (parent == NULL)
- ptree->pt_root = pctrie_toleaf(val);
+ pctrie_root_store(ptree,
+ pctrie_toleaf(val), PCTRIE_LOCKED);
else
pctrie_addnode(parent, index,
pctrie_toleaf(val), PCTRIE_LOCKED);
@@ -1242,7 +1243,8 @@
if (pctrie_isleaf(node)) {
if ((m = pctrie_toval(node)) != NULL && *m == index) {
if (parent == NULL)
- ptree->pt_root = leaf;
+ pctrie_root_store(ptree,
+ leaf, PCTRIE_LOCKED);
else
pctrie_node_store(
&parent->pn_child[slot], leaf,

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 31, 2:11 AM (2 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16351554
Default Alt Text
D46968.id144346.diff (742 B)

Event Timeline