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

- Fix for Coverity error CID: 464

svn path=/trunk/; revision=36490
This commit is contained in:
Stefan Ginsberg 2008-09-24 17:16:25 +00:00
parent ba22ca771d
commit c2ca8fb596

View file

@ -76,6 +76,7 @@ HalpXboxReadSector(IN PDEVICE_OBJECT DeviceObject,
SectorOffset,
&Event,
&StatusBlock);
if (!Irp) return STATUS_INSUFFICIENT_RESOURCES;
Status = IoCallDriver(DeviceObject,
Irp);