mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- Fix a bug where a spinlock was acquired on not initialized local variable
svn path=/trunk/; revision=50673
This commit is contained in:
@@ -1156,12 +1156,12 @@ KspBusWorkerRoutine(
|
||||
BOOLEAN DoInvalidate = FALSE;
|
||||
KIRQL OldLevel;
|
||||
|
||||
/* acquire lock */
|
||||
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
|
||||
|
||||
/* get device extension */
|
||||
BusDeviceExtension = (PBUS_ENUM_DEVICE_EXTENSION)Parameter;
|
||||
|
||||
/* acquire lock */
|
||||
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
|
||||
|
||||
/* get current time */
|
||||
KeQuerySystemTime(&Time);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user