Ensure we fall through error handlers, rather than BSOD.
Signed-off-by: Ben Chalmers <ben.chalmers@citrix.com>
Also fix another instance of the incorrect check.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Mdl = __AllocatePage();
status = STATUS_NO_MEMORY;
- if (Controller->Mdl == NULL)
+ if (Mdl == NULL)
goto fail1;
ASSERT(Mdl->MdlFlags & MDL_MAPPED_TO_SYSTEM_VA);
Mdl = __AllocatePage();
status = STATUS_NO_MEMORY;
- if (Controller->Mdl == NULL)
+ if (Mdl == NULL)
goto fail2;
ASSERT(Mdl->MdlFlags & MDL_MAPPED_TO_SYSTEM_VA);