Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matt-wu/Ext3Fsd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaho Ng <ngkaho1234@gmail.com>2016-06-06 23:20:50 +0300
committerKaho Ng <ngkaho1234@gmail.com>2016-06-06 23:20:50 +0300
commit2d8600f66f385d5b8df622c9987aa2d9ae846cf4 (patch)
tree68fd0a5fb80ca2084e88f2e3d9f5452b07f45782 /Ext3Fsd
parent96bbf545c8bf459236de955256f79026968128ce (diff)
ea: two changes. see below
- Fix duplicated call to Ext2MapUserBuffer - Remove Ext2MapUserBuffer routine, use Ext2GetUserBuffer instead
Diffstat (limited to 'Ext3Fsd')
-rw-r--r--Ext3Fsd/ea.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/Ext3Fsd/ea.c b/Ext3Fsd/ea.c
index f335f93..38be6ef 100644
--- a/Ext3Fsd/ea.c
+++ b/Ext3Fsd/ea.c
@@ -12,34 +12,6 @@
#include "ext2fs.h"
#include <linux/ext4_xattr.h>
-PVOID
-Ext2MapUserBuffer(
- IN OUT PIRP Irp
-)
-{
- //
- // If there is no Mdl, then we must be in the Fsd, and we can simply
- // return the UserBuffer field from the Irp.
- //
-
- if (Irp->MdlAddress == NULL) {
-
- return Irp->UserBuffer;
-
- }
- else {
-
- PVOID Address = MmGetSystemAddressForMdlSafe(Irp->MdlAddress, NormalPagePriority);
-
- if (Address == NULL) {
-
- ExRaiseStatus(STATUS_INSUFFICIENT_RESOURCES);
- }
-
- return Address;
- }
-}
-
// Ea iterator
struct EaIterator {
// Return only an entry
@@ -163,12 +135,10 @@ Ext2QueryEa (
Irp->IoStatus.Information = 0;
- UserBuffer = Ext2MapUserBuffer(Irp);
-
//
// Receive input parameter from caller
//
- UserBuffer = Ext2MapUserBuffer(Irp);
+ UserBuffer = Ext2GetUserBuffer(Irp);
if (!UserBuffer) {
Status = STATUS_INSUFFICIENT_RESOURCES;
__leave;