Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108966229
D46968.id144346.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
742 B
Referenced Files
None
Subscribers
None
D46968.id144346.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D46968: pctrie: don't assign to root
Attached
Detach File
Event Timeline
Log In to Comment