[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 2020-06-14 13:49:22 +02:00 committed by Hermès Bélusca-Maïto
parent 347ca5f859
commit cb6fc76b8b
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

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