mirror of
https://github.com/reactos/reactos.git
synced 2026-06-03 09:51:03 +08:00
[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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user