[FIXUP/OFW] Increase append child node's ref_count

rt_ofw_append_child append a new child node and return,
ref_get is necessary.

Signed-off-by: GuEe-GUI <2991707448@qq.com>
This commit is contained in:
GuEe-GUI 2024-09-10 13:17:39 +08:00 committed by Meco Man
parent 9fd9c1ee45
commit 43701ea1ed
1 changed files with 1 additions and 1 deletions

View File

@ -1412,7 +1412,7 @@ struct rt_ofw_node *rt_ofw_append_child(struct rt_ofw_node *parent, const char *
}
}
return np;
return rt_ofw_node_get(np);
}
rt_err_t rt_ofw_append_prop(struct rt_ofw_node *np, const char *name, int length, void *value)