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:
parent
a69042a5be
commit
baa45840d7
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user