ivshmem: Don't delete WDFINTERRUPTs
WDFINTERRUPT objects are deleted by the framework. Explicitly calling
WdfObjectDelete results in an assert/BSOD when running with Driver
Verifier enabled.
@@ -220,8 +220,7 @@ NTSTATUS IVSHMEMEvtDeviceReleaseHardware(_In_ WDFDEVICE Device, _In_ WDFCMRESLIS
if (deviceContext->interrupts)
{
- for (int i = 0; i < deviceContext->interruptsUsed; ++i)
- WdfObjectDelete(deviceContext->interrupts[i]);
+ // WDFINTERRUPT objects are deleted by the framework
ExFreePoolWithTag(deviceContext->interrupts, 'sQRI');
