X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4d15aeb193b2c68f1d38666c317f8d3734f5f083..5ba3f43ea354af8ad55bea84372a2bc834d8757c:/bsd/kern/sysv_msg.c diff --git a/bsd/kern/sysv_msg.c b/bsd/kern/sysv_msg.c index 56c670424..fad2cfbf7 100644 --- a/bsd/kern/sysv_msg.c +++ b/bsd/kern/sysv_msg.c @@ -67,6 +67,10 @@ #include #include +#if CONFIG_MACF +#include +#endif + #if SYSV_MSG static int msginit(void *); @@ -268,7 +272,7 @@ msginit(__unused void *dummy) } MALLOC(msqids, struct msqid_kernel *, - sizeof(struct user_msqid_ds) * msginfo.msgmni, + sizeof(struct msqid_kernel) * msginfo.msgmni, M_SHM, M_WAITOK); if (msqids == NULL) { printf("msginit: can't allocate msqids");