[NTOS:IO] IoDisconnectInterrupt(): Switch to ExFreePoolWithTag() (#6503)

Follow-up to commit 24a14abf2 (r57412).

HBelusca's comment:
> If this ExFreePoolWithTag() call was left commented, it's probably
> because, back in the day where I introduced it, there was a pool
> corruption that was detected, the source of which was unknown at
> that time. In retrospect, it is most probably the interrupt disconnect
> bug in IoDisconnectInterrupt() that was causing it. Now that this
> bug has been fixed just previously, it should be safe to re-enable
> pool freeing with tag.
This commit is contained in:
Serge Gautherie
2024-05-05 17:03:42 +02:00
parent 347ca5f859
commit cb6fc76b8b
+3 -3
View File
@@ -146,7 +146,7 @@ IoDisconnectInterrupt(PKINTERRUPT InterruptObject)
PAGED_CODE();
/* Get the I/O Interrupt */
/* Get the I/O interrupt */
IoInterrupt = CONTAINING_RECORD(InterruptObject,
IO_INTERRUPT,
FirstInterrupt);
@@ -165,8 +165,8 @@ IoDisconnectInterrupt(PKINTERRUPT InterruptObject)
KeDisconnectInterrupt(IoInterrupt->Interrupt[i]);
}
/* Free the I/O Interrupt */
ExFreePool(IoInterrupt); // ExFreePoolWithTag(IoInterrupt, TAG_KINTERRUPT);
/* Free the I/O interrupt */
ExFreePoolWithTag(IoInterrupt, TAG_KINTERRUPT);
}
NTSTATUS