Skip to content

Commit 703b982

Browse files
committed
Fix an issue with posponed matching (method IOTimerEventSource::timerEventSource could fail).
1 parent 27adce5 commit 703b982

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

AirportBrcmFixup/kern_brcmfx.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -431,13 +431,15 @@ void BRCMFX::processKext(KernelPatcher &patcher, size_t index, mach_vm_address_t
431431
workLoop = IOWorkLoop::workLoop();
432432

433433
if (workLoop) {
434-
matchingTimer = IOTimerEventSource::timerEventSource(ADDPR(selfInstance),
434+
matchingTimer = IOTimerEventSource::timerEventSource(workLoop,
435435
[](OSObject *owner, IOTimerEventSource *) {
436436
callbackBRCMFX->startMatching();
437437
});
438438

439439
if (matchingTimer) {
440-
workLoop->addEventSource(matchingTimer);
440+
IOReturn result = workLoop->addEventSource(matchingTimer);
441+
if (result != kIOReturnSuccess)
442+
SYSLOG("BRCMFX", "addEventSource failed");
441443
}
442444
else
443445
SYSLOG("BRCMFX", "timerEventSource failed");

Changelog.md

+3
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,6 @@ It can be used if you have masked pin 53 (CLKREQ#) and APSM L0|L1 is working.
126126
- Add pci14e4,4331, pci14e4,4353 and pci14e4,4357 into AirPortBrcmNIC_Injector.kext (in 11.0 only AirPortBrcmNIC can support these devices)
127127
- Added MacKernelSDK with Xcode 12 compatibility
128128
- Fixed macOS 10.8 compatibility (without ASPM support)
129+
130+
#### v2.1.1
131+
- Fix an issue with posponed matching (method IOTimerEventSource::timerEventSource could fail)

0 commit comments

Comments
 (0)