projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54f89ba
)
[NTOSKRNL] Properly reset pinning state on pinning failure
author
Pierre Schweitzer
<pierre@reactos.org>
Sun, 26 Aug 2018 20:56:25 +0000
(22:56 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Sun, 26 Aug 2018 20:56:25 +0000
(22:56 +0200)
ntoskrnl/cc/pin.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/cc/pin.c
b/ntoskrnl/cc/pin.c
index
3a0ee6e
..
65525ee
100644
(file)
--- a/
ntoskrnl/cc/pin.c
+++ b/
ntoskrnl/cc/pin.c
@@
-191,6
+191,12
@@
CcPinMappedData (
Result = ExAcquireSharedStarveExclusive(&iBcb->Lock, BooleanFlagOn(Flags, PIN_WAIT));
}
+ if (!Result)
+ {
+ iBcb->Pinned = FALSE;
+ iBcb->Vacb->PinCount--;
+ }
+
return Result;
}