added a missing unlock

Submitted by: JINMEI Tatuya
MFC After: 1 day
This commit is contained in:
SUZUKI Shinsuke 2005-10-15 08:49:49 +00:00
parent 6a6567612d
commit 971b154cd3

View file

@ -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);