diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-10-12 20:03:56 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-10-12 20:03:56 +0000 |
| commit | 6b8e5a9862449d5409d085ba4f9d420e6d524f5c (patch) | |
| tree | f759851c9141151bf3d53d1a0f6d5261076d3b4c | |
| parent | ebcfea8764fae2a0c4a50f4438a55a72a6a710f4 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 9c02395a2a14..26a804da42f4 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -363,9 +363,9 @@ udp_input(m, off) udpstat.udps_noportbcast++; goto badheadlocked; } - INP_INFO_RUNLOCK(&udbinfo); udp_append(last, ip, m, iphlen + sizeof(struct udphdr)); INP_UNLOCK(last); + INP_INFO_RUNLOCK(&udbinfo); return; } /* @@ -399,15 +399,15 @@ udp_input(m, off) return; } INP_LOCK(inp); - INP_INFO_RUNLOCK(&udbinfo); udp_append(inp, ip, m, iphlen + sizeof(struct udphdr)); INP_UNLOCK(inp); + INP_INFO_RUNLOCK(&udbinfo); return; badheadlocked: - INP_INFO_RUNLOCK(&udbinfo); if (inp) INP_UNLOCK(inp); + INP_INFO_RUNLOCK(&udbinfo); badunlocked: m_freem(m); if (opts) |
