Adding a call to ebpf_trace_terminate in case of subsequent APIs faliure (#2921)
* Adding a call to ebpf_trace_terminate in case of subsequent APIs faliure Signed-off-by: Amit Schendel <amithagever@gmail.com> * Adding ebpf_trace_terminate to the Exit section of the DriverEntry Signed-off-by: Amit Schendel <amitschendel@gmail.com> --------- Signed-off-by: Amit Schendel <amithagever@gmail.com> Signed-off-by: Amit Schendel <amitschendel@gmail.com>
This commit is contained in:
Родитель
f7010d45f3
Коммит
16658f4d11
|
@ -408,6 +408,9 @@ DriverEntry(_In_ DRIVER_OBJECT* driver_object, _In_ UNICODE_STRING* registry_pat
|
|||
|
||||
Exit:
|
||||
EBPF_LOG_EXIT();
|
||||
if (!NT_SUCCESS(status)) {
|
||||
ebpf_trace_terminate();
|
||||
}
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче