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:
Robert Watson 2006-12-28 21:56:39 +00:00
parent 2dccd58192
commit c982ffa42a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=165599

View File

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