mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 07:28:19 +00:00
[KS]
- Fix a bug where a spinlock was acquired on not initialized local variable - Found by msvc svn path=/branches/cmake-bringup/; revision=50671
This commit is contained in:
parent
44366c9fd0
commit
d33174f9de
1 changed files with 3 additions and 3 deletions
|
@ -1156,12 +1156,12 @@ KspBusWorkerRoutine(
|
||||||
BOOLEAN DoInvalidate = FALSE;
|
BOOLEAN DoInvalidate = FALSE;
|
||||||
KIRQL OldLevel;
|
KIRQL OldLevel;
|
||||||
|
|
||||||
/* acquire lock */
|
|
||||||
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
|
|
||||||
|
|
||||||
/* get device extension */
|
/* get device extension */
|
||||||
BusDeviceExtension = (PBUS_ENUM_DEVICE_EXTENSION)Parameter;
|
BusDeviceExtension = (PBUS_ENUM_DEVICE_EXTENSION)Parameter;
|
||||||
|
|
||||||
|
/* acquire lock */
|
||||||
|
KeAcquireSpinLock(&BusDeviceExtension->Lock, &OldLevel);
|
||||||
|
|
||||||
/* get current time */
|
/* get current time */
|
||||||
KeQuerySystemTime(&Time);
|
KeQuerySystemTime(&Time);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue