mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 22:04:40 +00:00
In mac_inpcb_sosetlabel(), assert the socket lock rather than commenting
that we should assert the socket lock. Obtained from: TrustedBSD Project
This commit is contained in:
parent
2dccd58192
commit
c982ffa42a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165599
|
@ -270,8 +270,8 @@ void
|
|||
mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp)
|
||||
{
|
||||
|
||||
/* XXX: assert socket lock. */
|
||||
INP_LOCK_ASSERT(inp);
|
||||
SOCK_LOCK_ASSERT(so);
|
||||
MAC_PERFORM(inpcb_sosetlabel, so, so->so_label, inp, inp->inp_label);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue