summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-04-19 14:35:17 +0000
committerrwatson <rwatson@FreeBSD.org>2008-04-19 14:35:17 +0000
commit9b7e6d648c8456fdf28f9911f04f62702a215320 (patch)
tree420b9ff5c16bb1b8326fd9cf4d45c84c59c8fcf8 /sys/netinet
parent2716eff1ab8fa50324fde072f3f132959a9e0895 (diff)
downloadFreeBSD-src-9b7e6d648c8456fdf28f9911f04f62702a215320.zip
FreeBSD-src-9b7e6d648c8456fdf28f9911f04f62702a215320.tar.gz
In ip_output(), allow a read lock as well as a write lock when asserting
a lock on the passed inpcb. MFC after: 3 months
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index 5e08dac..37995ef 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -130,7 +130,7 @@ ip_output(struct mbuf *m, struct mbuf *opt, struct route *ro, int flags,
}
if (inp != NULL)
- INP_WLOCK_ASSERT(inp);
+ INP_LOCK_ASSERT(inp);
if (opt) {
len = 0;
OpenPOWER on IntegriCloud