- Execute the failure case while holding the mutex otherwise we crash

svn path=/trunk/; revision=54395
This commit is contained in:
Cameron Gutman 2011-11-16 04:39:49 +00:00
parent 846509e433
commit 2e7cf798a9

View file

@ -463,6 +463,8 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
NULL);
DPRINT("Finished waiting (%wZ)! Status: %x\n", &Ccb->Fcb->PipeName, Status);
ExAcquireFastMutex(&Ccb->DataListLock);
if ((Status == STATUS_USER_APC) || (Status == STATUS_KERNEL_APC) || (Status == STATUS_ALERTED))
{
Status = STATUS_CANCELLED;
@ -472,7 +474,6 @@ NpfsRead(IN PDEVICE_OBJECT DeviceObject,
{
ASSERT(FALSE);
}
ExAcquireFastMutex(&Ccb->DataListLock);
}
else
{