From b1e4abd2464bb5552ab1c65f9574adb61d9a36fd Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Sat, 17 Nov 2001 03:07:11 +0000 Subject: Give struct socket structures a ref counting interface similar to vnodes. This will hopefully serve as a base from which we can expand the MP code. We currently do not attempt to obtain any mutex or SX locks, but the door is open to add them when we nail down exactly how that part of it is going to work. --- sys/netnatm/natm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netnatm') diff --git a/sys/netnatm/natm.c b/sys/netnatm/natm.c index 257aa76a1c17d..af80e11a9e4d1 100644 --- a/sys/netnatm/natm.c +++ b/sys/netnatm/natm.c @@ -133,7 +133,7 @@ natm_usr_detach(struct socket *so) */ npcb_free(npcb, NPCB_DESTROY); /* drain */ so->so_pcb = NULL; - sofree(so); + sotryfree(so); out: splx(s); return (error); @@ -481,7 +481,7 @@ struct proc *p; npcb_free(npcb, NPCB_DESTROY); /* drain */ so->so_pcb = NULL; - sofree(so); + sotryfree(so); break; -- cgit v1.3