add missing unlock when in_pcballoc returns an error
This commit is contained in:
parent
588523fae3
commit
53b57cd1ab
@ -903,8 +903,10 @@ udp_attach(struct socket *so, int proto, struct thread *td)
|
||||
s = splnet();
|
||||
error = in_pcballoc(so, &udbinfo, td);
|
||||
splx(s);
|
||||
if (error)
|
||||
if (error) {
|
||||
INP_INFO_WUNLOCK(&udbinfo);
|
||||
return error;
|
||||
}
|
||||
|
||||
inp = (struct inpcb *)so->so_pcb;
|
||||
INP_LOCK(inp);
|
||||
|
Loading…
Reference in New Issue
Block a user