mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
add missing unlock when in_pcballoc returns an error
This commit is contained in:
parent
588523fae3
commit
53b57cd1ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119132
|
@ -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 a new issue