summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorsuz <suz@FreeBSD.org>2005-10-15 08:49:49 +0000
committersuz <suz@FreeBSD.org>2005-10-15 08:49:49 +0000
commitb63fa30718d5813a3f63a935f095e1167b470d84 (patch)
treef213540739bab24f520e103d1991e8a01a7fc4fb /sys/netinet6
parent140118d69d63dcb8e7e8859c9b02312ab05578be (diff)
downloadFreeBSD-src-b63fa30718d5813a3f63a935f095e1167b470d84.zip
FreeBSD-src-b63fa30718d5813a3f63a935f095e1167b470d84.tar.gz
added a missing unlock
Submitted by: JINMEI Tatuya MFC After: 1 day
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/raw_ip6.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index c1bf315..e07ca80 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -566,8 +566,10 @@ rip6_attach(struct socket *so, int proto, struct thread *td)
}
MALLOC(filter, struct icmp6_filter *,
sizeof(struct icmp6_filter), M_PCB, M_NOWAIT);
- if (filter == NULL)
+ if (filter == NULL) {
+ INP_INFO_WUNLOCK(&ripcbinfo);
return ENOMEM;
+ }
s = splnet();
error = in_pcballoc(so, &ripcbinfo, "raw6inp");
splx(s);
OpenPOWER on IntegriCloud