Fix failure case in IoConnectInterrupt. (Now really)

svn path=/trunk/; revision=13895
This commit is contained in:
Filip Navara 2005-03-08 23:15:34 +00:00
parent b5d60675a0
commit 8f22c7534c

View file

@ -1,4 +1,4 @@
/* $Id:$
/* $Id$
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -120,9 +120,12 @@ IoConnectInterrupt(PKINTERRUPT* InterruptObject,
if (!KeConnectInterrupt(&Interrupt[count]))
{
for (i = 0; i < count; i++)
{
if (ProcessorEnableMask & (1 << i))
{
KeDisconnectInterrupt(&Interrupt[i]);
}
}
ExFreePool(Interrupt);
return STATUS_INVALID_PARAMETER;
}