mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:46:17 +00: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:
parent
3346301777
commit
28bb8c6ff7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue