https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7f1025dccec6d8b0d5d47…
commit 7f1025dccec6d8b0d5d471354392563eb6e08c31
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Thu Feb 1 09:57:55 2024 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Thu Feb 1 10:08:58 2024 +0100
[CMBATT] Send correct tag on IoAcquireRemoveLock
This prevents an assert in IoReleaseRemoveLock in debug builds, which
already receives the 'Irp' tag.
---
drivers/bus/acpi/cmbatt/cmbatt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/acpi/cmbatt/cmbatt.c b/drivers/bus/acpi/cmbatt/cmbatt.c
index 257af8e4eb3..2da8f5d6f05 100644
--- a/drivers/bus/acpi/cmbatt/cmbatt.c
+++ b/drivers/bus/acpi/cmbatt/cmbatt.c
@@ -358,7 +358,7 @@ CmBattIoctl(IN PDEVICE_OBJECT DeviceObject,
if (CmBattDebug & 2) DbgPrint("CmBattIoctl\n");
/* Acquire the remove lock */
- Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, 0);
+ Status = IoAcquireRemoveLock(&DeviceExtension->RemoveLock, Irp);
if (!NT_SUCCESS(Status))
{
/* It's too late, fail */