https://git.reactos.org/?p=reactos.git;a=commitdiff;h=28bb8c6ff7b82b8216dfa…
commit 28bb8c6ff7b82b8216dfa6bfb052f1d169959062
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sat Dec 14 21:52:24 2024 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Wed Jan 8 23:20:07 2025 +0100
[COMPBATT] Assign a memory allocation tag for the I/O remove lock
IoInitializeRemoveLock expects an allocation tag to be provided when it allocates debug data in the kernel.
Passing 0 leads to a bunch of ASSERTs in the kernel as such data is allocated by ExAllocatePoolWithTag of which a tag has to be supplied, it's not optional.
---
drivers/bus/acpi/compbatt/comppnp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/acpi/compbatt/comppnp.c b/drivers/bus/acpi/compbatt/comppnp.c
index 7e8523537ae..31b05030b4f 100644
--- a/drivers/bus/acpi/compbatt/comppnp.c
+++ b/drivers/bus/acpi/compbatt/comppnp.c
@@ -177,7 +177,7 @@ CompBattAddNewBattery(
ExReleaseFastMutex(&DeviceExtension->Lock);
/* Initialize the work item and delete lock */
- IoInitializeRemoveLock(&BatteryData->RemoveLock, 0, 0, 0);
+ IoInitializeRemoveLock(&BatteryData->RemoveLock, COMPBATT_TAG, 0, 0);
ExInitializeWorkItem(&BatteryData->WorkItem,
(PVOID)CompBattMonitorIrpCompleteWorker,
BatteryData);
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f9ea9220d8612368be66d…
commit f9ea9220d8612368be66db2182ebb6837ac68306
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Sat Dec 14 23:07:18 2024 +0100
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Wed Jan 8 23:20:06 2025 +0100
[COMPBATT] Remove the useless WaitFlag field in the code which is never used
---
drivers/bus/acpi/compbatt/comppnp.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/bus/acpi/compbatt/comppnp.c b/drivers/bus/acpi/compbatt/comppnp.c
index 141ec2ebbe4..f16bfd2ed3d 100644
--- a/drivers/bus/acpi/compbatt/comppnp.c
+++ b/drivers/bus/acpi/compbatt/comppnp.c
@@ -165,7 +165,6 @@ CompBattAddNewBattery(IN PUNICODE_STRING BatteryName,
/* Set IRP data */
IoSetNextIrpStackLocation(Irp);
Irp->IoStatus.Status = STATUS_DEVICE_NOT_CONNECTED;
- BatteryData->WaitFlag = 0;
/* Insert this battery in the list */
ExAcquireFastMutex(&DeviceExtension->Lock);