Loading...
--- xnu/xnu-12377.101.15/iokit/Kernel/IOInterleavedMemoryDescriptor.cpp
+++ xnu/xnu-6153.41.3/iokit/Kernel/IOInterleavedMemoryDescriptor.cpp
@@ -83,8 +83,8 @@
_tag = 0;
_descriptorCount = 0;
_descriptors = IONew(IOMemoryDescriptor *, capacity);
- _descriptorOffsets = IONewData(IOByteCount, capacity);
- _descriptorLengths = IONewData(IOByteCount, capacity);
+ _descriptorOffsets = IONew(IOByteCount, capacity);
+ _descriptorLengths = IONew(IOByteCount, capacity);
if ((_descriptors == NULL) || (_descriptorOffsets == NULL) || (_descriptorLengths == NULL)) {
return false;
@@ -171,11 +171,11 @@
}
if (_descriptorOffsets != NULL) {
- IODeleteData(_descriptorOffsets, IOByteCount, _descriptorCapacity);
+ IODelete(_descriptorOffsets, IOMemoryDescriptor *, _descriptorCapacity);
}
if (_descriptorLengths != NULL) {
- IODeleteData(_descriptorLengths, IOByteCount, _descriptorCapacity);
+ IODelete(_descriptorLengths, IOMemoryDescriptor *, _descriptorCapacity);
}
}