mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fix failure case in IoConnectInterrupt. (Now really)
svn path=/trunk/; revision=13895
This commit is contained in:
parent
b5d60675a0
commit
8f22c7534c
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id:$
|
/* $Id$
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -121,7 +121,10 @@ IoConnectInterrupt(PKINTERRUPT* InterruptObject,
|
||||||
{
|
{
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
KeDisconnectInterrupt(&Interrupt[i]);
|
if (ProcessorEnableMask & (1 << i))
|
||||||
|
{
|
||||||
|
KeDisconnectInterrupt(&Interrupt[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ExFreePool(Interrupt);
|
ExFreePool(Interrupt);
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
|
Loading…
Reference in a new issue