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
This commit is contained in:
Robert Watson 2008-04-19 14:35:17 +00:00
parent a69042a5be
commit baa45840d7

View File

@ -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;