diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2003-08-19 17:11:46 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2003-08-19 17:11:46 +0000 |
| commit | 53b57cd1ab3facf98f79145d86d74089449bd62c (patch) | |
| tree | 6363c3a40a47a8a9592db305fe05d408123c04ff /sys/netinet | |
| parent | 588523fae35e4d3f99660fc33b1dc42b8ebf4dc5 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 7c1d8d93baba..794461ed738a 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -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); |
