X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/39236c6e673c41db228275375ab7fdb0f837b292..a39ff7e25e19b3a8c3020042a3872ca9ec9659f1:/iokit/Kernel/IOStatistics.cpp diff --git a/iokit/Kernel/IOStatistics.cpp b/iokit/Kernel/IOStatistics.cpp index 6e72eb495..f3771602a 100644 --- a/iokit/Kernel/IOStatistics.cpp +++ b/iokit/Kernel/IOStatistics.cpp @@ -27,6 +27,7 @@ */ #include +#include #include #include @@ -814,8 +815,11 @@ int IOStatistics::getUserClientStatistics(sysctl_req *req) 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); @@ -1221,7 +1225,7 @@ KextNode *IOStatistics::getKextNodeFromBacktrace(boolean_t write) { * 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);