*/
#include <sys/sysctl.h>
+#include <kern/backtrace.h>
#include <kern/host.h>
#include <kern/zalloc.h>
goto exit;
}
- SYSCTL_IN(req, &requestedLoadTag, sizeof(requestedLoadTag));
-
+ error = SYSCTL_IN(req, &requestedLoadTag, sizeof(requestedLoadTag));
+ if (error) {
+ goto exit;
+ }
+
LOG(2, "IOStatistics::getUserClientStatistics - requesting kext w/load tag: %d\n", requestedLoadTag);
buffer = (char*)kalloc(calculatedSize);
* overhead. OSBacktrace does many safety checks that
* are not needed in this situation.
*/
- btCount = fastbacktrace((uintptr_t*)bt, btCount);
+ btCount = backtrace((uintptr_t*)bt, btCount);
if (write) {
IORWLockWrite(lock);