Author: sginsberg
Date: Wed Sep 24 09:53:28 2008
New Revision: 36482
URL:
http://svn.reactos.org/svn/reactos?rev=36482&view=rev
Log:
- RawQueryFsSizeInfo: Fail if we are out of memory instead of dereferencing null
Modified:
trunk/reactos/ntoskrnl/io/iomgr/rawfs.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/rawfs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/rawfs.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/rawfs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/rawfs.c [iso-8859-1] Wed Sep 24 09:53:28 2008
@@ -652,6 +652,7 @@
FALSE,
&Event,
&IoStatusBlock);
+ if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
/* Call driver and check if we're pending */
Status = IoCallDriver(RealDevice, Irp);
@@ -692,6 +693,7 @@
FALSE,
&Event,
&IoStatusBlock);
+ if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
/* Call driver and check if we're pending */
Status = IoCallDriver(RealDevice, Irp);