Driver: Check device object on error tracing

This commit is contained in:
Nodir Temirkhodjaev 2022-05-29 12:23:09 +03:00
parent 0b6b7b3a5d
commit a812c9617b

View File

@ -7,7 +7,7 @@
FORT_API void fort_trace_event( FORT_API void fort_trace_event(
NTSTATUS event_code, NTSTATUS status, ULONG error_value, ULONG sequence) NTSTATUS event_code, NTSTATUS status, ULONG error_value, ULONG sequence)
{ {
if (KeGetCurrentIrql() > DISPATCH_LEVEL) if (KeGetCurrentIrql() > DISPATCH_LEVEL || fort_device() == NULL)
return; return;
PIO_ERROR_LOG_PACKET packet = PIO_ERROR_LOG_PACKET packet =