Loading...
iokit/Kernel/IOInterruptEventSource.cpp xnu-8020.140.41 xnu-8792.41.9
--- xnu/xnu-8020.140.41/iokit/Kernel/IOInterruptEventSource.cpp
+++ xnu/xnu-8792.41.9/iokit/Kernel/IOInterruptEventSource.cpp
@@ -84,6 +84,10 @@
 {
 	bool res = true;
 
+	if (inIntIndex < 0) {
+		return false;
+	}
+
 	if (!super::init(inOwner, (IOEventSourceAction) inAction)) {
 		return false;
 	}