Loading...
--- xnu/xnu-12377.121.6/iokit/Kernel/IOMapper.cpp
+++ xnu/xnu-8019.41.5/iokit/Kernel/IOMapper.cpp
@@ -34,7 +34,6 @@
#include <libkern/c++/OSData.h>
#include <libkern/OSDebug.h>
#include <mach_debug/zone_info.h>
-#include <vm/vm_iokit.h>
#include "IOKitKernelInternal.h"
__BEGIN_DECLS
@@ -192,7 +191,7 @@
goto found;
}
- data = OSData::withValueNoCopy(*((UInt32 *)data->getBytesNoCopy() + index));
+ data = OSData::withBytesNoCopy((UInt32 *)data->getBytesNoCopy() + index, sizeof(UInt32));
if (!data) {
goto found;
}