aboutsummaryrefslogtreecommitdiff
path: root/sys/netipx/ipx_pcb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netipx/ipx_pcb.c')
-rw-r--r--sys/netipx/ipx_pcb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netipx/ipx_pcb.c b/sys/netipx/ipx_pcb.c
index 1649b2e01b129..322e569cb0d07 100644
--- a/sys/netipx/ipx_pcb.c
+++ b/sys/netipx/ipx_pcb.c
@@ -66,6 +66,7 @@ ipx_pcballoc(so, head, td)
MALLOC(ipxp, struct ipxpcb *, sizeof *ipxp, M_PCB, M_NOWAIT | M_ZERO);
if (ipxp == NULL)
return (ENOBUFS);
+ IPX_LOCK_INIT(ipxp);
ipxp->ipxp_socket = so;
if (ipxcksum)
ipxp->ipxp_flags |= IPXP_CHECKSUM;
@@ -277,6 +278,7 @@ ipx_pcbdetach(ipxp)
if (ipxp->ipxp_route.ro_rt != NULL)
RTFREE(ipxp->ipxp_route.ro_rt);
LIST_REMOVE(ipxp, ipxp_list);
+ IPX_LOCK_DESTROY(ipxp);
FREE(ipxp, M_PCB);
}