summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/kern/kern_sysctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/kern/kern_sysctl.c')
-rw-r--r--cpukit/libnetworking/kern/kern_sysctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpukit/libnetworking/kern/kern_sysctl.c b/cpukit/libnetworking/kern/kern_sysctl.c
index 7f8be80b48..0fb1bc0a97 100644
--- a/cpukit/libnetworking/kern/kern_sysctl.c
+++ b/cpukit/libnetworking/kern/kern_sysctl.c
@@ -392,7 +392,8 @@ sysctl_add_oid(struct sysctl_ctx_list *clist, struct sysctl_oid_list *parent,
oidp->oid_kind = CTLFLAG_DYN | kind;
if ((kind & CTLTYPE) == CTLTYPE_NODE) {
/* Allocate space for children */
- SYSCTL_CHILDREN(oidp) = malloc(sizeof(struct sysctl_oid_list),
+ /* Later accessed by macro SYSCTL_CHILDREN(oidp) */
+ oidp->oid_arg1 = malloc(sizeof(struct sysctl_oid_list),
M_SYSCTLOID, M_WAITOK);
SLIST_INIT(SYSCTL_CHILDREN(oidp));
} else {