Document required locking in in6_sleectsrc() in case an inp is
passed in by adding an assert. Requested by: rwatson Reviewed by: rwatson
This commit is contained in:
parent
4d896055ce
commit
a55b8b2068
@ -188,10 +188,12 @@ in6_selectsrc(struct sockaddr_in6 *dstsock, struct ip6_pktopts *opts,
|
||||
if (ifpp)
|
||||
*ifpp = NULL;
|
||||
|
||||
if (inp != NULL)
|
||||
if (inp != NULL) {
|
||||
INP_LOCK_ASSERT(inp);
|
||||
mopts = inp->in6p_moptions;
|
||||
else
|
||||
} else {
|
||||
mopts = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* If the source address is explicitly specified by the caller,
|
||||
|
Loading…
x
Reference in New Issue
Block a user