X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..a39ff7e25e19b3a8c3020042a3872ca9ec9659f1:/security/mac_net.c diff --git a/security/mac_net.c b/security/mac_net.c index cd452be5e..e06837b06 100644 --- a/security/mac_net.c +++ b/security/mac_net.c @@ -307,8 +307,8 @@ mac_mbuf_label_init(struct mbuf *m, int flag) if (mac_label_mbufs == 0) return (0); - tag = m_tag_alloc(KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_MACLABEL, - sizeof(struct label), flag); + tag = m_tag_create(KERNEL_MODULE_TAG_ID, KERNEL_TAG_TYPE_MACLABEL, + sizeof(struct label), flag, m); if (tag == NULL) { printf("%s(): m_tag_alloc() failed!\n", __func__); return (ENOBUFS);