From 33714797f47537983142e1d4760f7f492f822e30 Mon Sep 17 00:00:00 2001 From: Serge Gautherie Date: Wed, 9 Sep 2020 03:46:56 +0200 Subject: [PATCH] [COMPBATT] Add a missing OBJ_KERNEL_HANDLE CORE-10207 --- drivers/bus/acpi/compbatt/compmisc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/bus/acpi/compbatt/compmisc.c b/drivers/bus/acpi/compbatt/compmisc.c index 337c521835c..e84a2512706 100644 --- a/drivers/bus/acpi/compbatt/compmisc.c +++ b/drivers/bus/acpi/compbatt/compmisc.c @@ -84,7 +84,11 @@ CompBattGetDeviceObjectPointer(IN PUNICODE_STRING DeviceName, PAGED_CODE(); /* Open a file object handle to the device */ - InitializeObjectAttributes(&ObjectAttributes, DeviceName, 0, NULL, NULL); + InitializeObjectAttributes(&ObjectAttributes, + DeviceName, + OBJ_KERNEL_HANDLE, + NULL, + NULL); Status = ZwCreateFile(&DeviceHandle, DesiredAccess, &ObjectAttributes,