- FsRtlBalanceReads: Fail if we are out of memory instead of dereferencing null

- Fix for Coverity error CID: 465

svn path=/trunk/; revision=36483
This commit is contained in:
Stefan Ginsberg 2008-09-24 15:04:59 +00:00
parent 85033039ab
commit 9bbb8ab1a3

View file

@ -52,6 +52,7 @@ FsRtlBalanceReads(PDEVICE_OBJECT TargetDevice)
FALSE,
&Event,
&IoStatusBlock);
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
/* Send it */
Status = IoCallDriver(TargetDevice, Irp);