@@ -97,7 +97,6 @@ void CPUFriendPlugin::myConfigResourceCallback(uint32_t requestTag, kern_return_
97
97
} else {
98
98
SYSLOG (" myConfigResourceCallback" , " failed to feed cpu data (%u, %d)" , sz, data != nullptr );
99
99
}
100
-
101
100
callbackCpuf->orgConfigLoadCallback (requestTag, result, resourceData, resourceDataLength, context);
102
101
} else {
103
102
SYSLOG (" myConfigResourceCallback" , " config callback arrived at nowhere" );
@@ -109,7 +108,8 @@ void CPUFriendPlugin::processKext(KernelPatcher &patcher, size_t index, mach_vm_
109
108
for (size_t i = 0 ; i < kextListSize; i++) {
110
109
if (kextList[i].loadIndex == index ) {
111
110
DBGLOG (" processKext" , " current kext is %s progressState %d" , kextList[i].id , progressState);
112
-
111
+ // clear error from the very beginning just in case
112
+ patcher.clearError ();
113
113
if (!strcmp (kextList[i].id , idList[0 ])) {
114
114
auto callback = patcher.solveSymbol (index , symbolList[0 ]);
115
115
if (callback) {
@@ -122,7 +122,6 @@ void CPUFriendPlugin::processKext(KernelPatcher &patcher, size_t index, mach_vm_
122
122
} else {
123
123
SYSLOG (" processKext" , " failed to find %s" , symbolList[0 ]);
124
124
}
125
-
126
125
progressState |= cpufessingState::CallbackRouted;
127
126
}
128
127
0 commit comments