Loading...
iokit/Kernel/IOSharedDataQueue.cpp xnu-8020.101.4 xnu-7195.81.3
--- xnu/xnu-8020.101.4/iokit/Kernel/IOSharedDataQueue.cpp
+++ xnu/xnu-7195.81.3/iokit/Kernel/IOSharedDataQueue.cpp
@@ -84,7 +84,7 @@
 		return false;
 	}
 
-	_reserved = IOMallocType(ExpansionData);
+	_reserved = (ExpansionData *)IOMalloc(sizeof(struct ExpansionData));
 	if (!_reserved) {
 		return false;
 	}
@@ -117,7 +117,7 @@
 	appendix->version   = 0;
 
 	if (!notifyMsg) {
-		notifyMsg = IOMallocType(mach_msg_header_t);
+		notifyMsg = IOMalloc(sizeof(mach_msg_header_t));
 		if (!notifyMsg) {
 			return false;
 		}
@@ -136,13 +136,13 @@
 		IOFreeAligned(dataQueue, round_page(getQueueSize() + DATA_QUEUE_MEMORY_HEADER_SIZE + DATA_QUEUE_MEMORY_APPENDIX_SIZE));
 		dataQueue = NULL;
 		if (notifyMsg) {
-			IOFreeType(notifyMsg, mach_msg_header_t);
+			IOFree(notifyMsg, sizeof(mach_msg_header_t));
 			notifyMsg = NULL;
 		}
 	}
 
 	if (_reserved) {
-		IOFreeType(_reserved, ExpansionData);
+		IOFree(_reserved, sizeof(struct ExpansionData));
 		_reserved = NULL;
 	}