Author: sginsberg
Date: Wed Sep 24 10:04:59 2008
New Revision: 36483
URL:
http://svn.reactos.org/svn/reactos?rev=36483&view=rev
Log:
- FsRtlBalanceReads: Fail if we are out of memory instead of dereferencing null
- Fix for Coverity error CID: 465
Modified:
trunk/reactos/ntoskrnl/fsrtl/faulttol.c
Modified: trunk/reactos/ntoskrnl/fsrtl/faulttol.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/fsrtl/faulttol.c?…
==============================================================================
--- trunk/reactos/ntoskrnl/fsrtl/faulttol.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/fsrtl/faulttol.c [iso-8859-1] Wed Sep 24 10:04:59 2008
@@ -52,6 +52,7 @@
FALSE,
&Event,
&IoStatusBlock);
+ if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
/* Send it */
Status = IoCallDriver(TargetDevice, Irp);