Author: tfaber
Date: Mon Sep 16 17:37:47 2013
New Revision: 60173
URL:
http://svn.reactos.org/svn/reactos?rev=60173&view=rev
Log:
[NPFS]
- Fix usage of ExAllocatePoolWithQuotaTag
Modified:
trunk/reactos/drivers/filesystems/npfs_new/datasup.c
trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c
trunk/reactos/drivers/filesystems/npfs_new/secursup.c
trunk/reactos/drivers/filesystems/npfs_new/waitsup.c
Modified: trunk/reactos/drivers/filesystems/npfs_new/datasup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/datasup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/datasup.c [iso-8859-1] Mon Sep 16 17:37:47
2013
@@ -329,7 +329,7 @@
case 3:
ASSERT(Irp != NULL);
- DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool,
+ DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool |
POOL_QUOTA_FAIL_INSTEAD_OF_RAISE,
sizeof(*DataEntry),
NPFS_DATA_ENTRY_TAG);
if (!DataEntry)
@@ -371,7 +371,7 @@
HasSpace = FALSE;
}
- DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool,
+ DataEntry = ExAllocatePoolWithQuotaTag(NonPagedPool |
POOL_QUOTA_FAIL_INSTEAD_OF_RAISE,
EntrySize,
NPFS_DATA_ENTRY_TAG);
if (!DataEntry)
Modified: trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/fsctrl.c [iso-8859-1] Mon Sep 16 17:37:47
2013
@@ -433,7 +433,9 @@
if (BytesWritten)
{
- NewIrp->AssociatedIrp.SystemBuffer = ExAllocatePoolWithQuotaTag(PagedPool,
BytesWritten, NPFS_WRITE_BLOCK_TAG);
+ NewIrp->AssociatedIrp.SystemBuffer = ExAllocatePoolWithQuotaTag(PagedPool
| POOL_QUOTA_FAIL_INSTEAD_OF_RAISE,
+
BytesWritten,
+
NPFS_WRITE_BLOCK_TAG);
if (!NewIrp->AssociatedIrp.SystemBuffer)
{
IoFreeIrp(NewIrp);
Modified: trunk/reactos/drivers/filesystems/npfs_new/secursup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/secursup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/secursup.c [iso-8859-1] Mon Sep 16 17:37:47
2013
@@ -139,7 +139,9 @@
}
else
{
- NewContext = ExAllocatePoolWithQuotaTag(PagedPool, sizeof(*NewContext),
NPFS_CLIENT_SEC_CTX_TAG);
+ NewContext = ExAllocatePoolWithQuotaTag(PagedPool |
POOL_QUOTA_FAIL_INSTEAD_OF_RAISE,
+ sizeof(*NewContext),
+ NPFS_CLIENT_SEC_CTX_TAG);
if (!NewContext) return STATUS_INSUFFICIENT_RESOURCES;
Status = SeCreateClientSecurity(Thread, &Ccb->ClientQos, 0, NewContext);
Modified: trunk/reactos/drivers/filesystems/npfs_new/waitsup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/npfs_n…
==============================================================================
--- trunk/reactos/drivers/filesystems/npfs_new/waitsup.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/npfs_new/waitsup.c [iso-8859-1] Mon Sep 16 17:37:47
2013
@@ -219,7 +219,7 @@
IoStack = IoGetCurrentIrpStackLocation(Irp);
- WaitEntry = ExAllocatePoolWithQuotaTag(NonPagedPool,
+ WaitEntry = ExAllocatePoolWithQuotaTag(NonPagedPool |
POOL_QUOTA_FAIL_INSTEAD_OF_RAISE,
sizeof(*WaitEntry),
NPFS_WRITE_BLOCK_TAG);
if (!WaitEntry)