Author: cwittich
Date: Wed Nov 21 13:57:25 2007
New Revision: 30617
URL:
http://svn.reactos.org/svn/reactos?rev=30617&view=rev
Log:
don't try to free CurrentBuffer when allocation failed
Modified:
trunk/reactos/drivers/storage/ide/pciidex/miniport.c
Modified: trunk/reactos/drivers/storage/ide/pciidex/miniport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/storage/ide/pciide…
==============================================================================
--- trunk/reactos/drivers/storage/ide/pciidex/miniport.c (original)
+++ trunk/reactos/drivers/storage/ide/pciidex/miniport.c Wed Nov 21 13:57:25 2007
@@ -140,7 +140,7 @@
if (!CurrentBuffer)
{
Status = STATUS_INSUFFICIENT_RESOURCES;
- goto cleanup;
+ return Status;
}
Status = PciIdeXGetBusData(DeviceExtension, Buffer, ConfigDataOffset, BufferLength);