projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
846509e
)
[NPFS]
author
Cameron Gutman
<aicommander@gmail.com>
Wed, 16 Nov 2011 04:39:49 +0000
(
04:39
+0000)
committer
Cameron Gutman
<aicommander@gmail.com>
Wed, 16 Nov 2011 04:39:49 +0000
(
04:39
+0000)
- Execute the failure case while holding the mutex otherwise we crash
svn path=/trunk/; revision=54395
reactos/drivers/filesystems/npfs/rw.c
patch
|
blob
|
history
diff --git
a/reactos/drivers/filesystems/npfs/rw.c
b/reactos/drivers/filesystems/npfs/rw.c
index
a8fdaf6
..
e344fd8
100644
(file)
--- a/
reactos/drivers/filesystems/npfs/rw.c
+++ b/
reactos/drivers/filesystems/npfs/rw.c
@@
-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
{