mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +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:
parent
641cb1f0f0
commit
db2351ec56
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue