summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarini Ramakrishnan <haramakr@microsoft.com>2019-01-14 10:23:36 -0800
committerHarini Ramakrishnan <haramakr@microsoft.com>2019-01-14 11:12:38 -0800
commit4c99c0a59a7e33144af2333bff590bdff37fd65d (patch)
treec765f309dbe1278c37fded8f92cfbfc9e4312a9f
parent9087d5ff8375c049d30fbd081cd31fd6dc0ad917 (diff)
downloaddpdk-draft-windows-4c99c0a59a7e33144af2333bff590bdff37fd65d.zip
dpdk-draft-windows-4c99c0a59a7e33144af2333bff590bdff37fd65d.tar.gz
dpdk-draft-windows-4c99c0a59a7e33144af2333bff590bdff37fd65d.tar.xz
doc: remove lower bound on mapped address from Windows UIO driver
-rw-r--r--kernel/windows/netuio/netuio_dev.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/kernel/windows/netuio/netuio_dev.c b/kernel/windows/netuio/netuio_dev.c
index 4d8b943..f5d41cb 100644
--- a/kernel/windows/netuio/netuio_dev.c
+++ b/kernel/windows/netuio/netuio_dev.c
@@ -28,23 +28,23 @@ NTSTATUS
netuio_create_device(_Inout_ PWDFDEVICE_INIT DeviceInit)
{
WDF_OBJECT_ATTRIBUTES deviceAttributes;
- WDFDEVICE device;
+ WDFDEVICE device = NULL;
NTSTATUS status;
PAGED_CODE();
- // Ensure that only administrators can access our device object.
- status = WdfDeviceInitAssignSDDLString(DeviceInit, &SDDL_DEVOBJ_SYS_ALL_ADM_ALL);
+ // Ensure that only administrators can access our device object.
+ status = WdfDeviceInitAssignSDDLString(DeviceInit, &SDDL_DEVOBJ_SYS_ALL_ADM_ALL);
- if (NT_SUCCESS(status)) {
- WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&deviceAttributes, NETUIO_CONTEXT_DATA);
+ if (NT_SUCCESS(status)) {
+ WDF_OBJECT_ATTRIBUTES_INIT_CONTEXT_TYPE(&deviceAttributes, NETUIO_CONTEXT_DATA);
- // Set the device context cleanup callback.
- // This function will be called when the WDF Device Object associated to the current device is destroyed
- deviceAttributes.EvtCleanupCallback = netuio_evt_device_context_cleanup;
+ // Set the device context cleanup callback.
+ // This function will be called when the WDF Device Object associated to the current device is destroyed
+ deviceAttributes.EvtCleanupCallback = netuio_evt_device_context_cleanup;
- status = WdfDeviceCreate(&DeviceInit, &deviceAttributes, &device);
- }
+ status = WdfDeviceCreate(&DeviceInit, &deviceAttributes, &device);
+ }
if (NT_SUCCESS(status)) {
// Create a device interface so that applications can find and talk to us.
@@ -263,7 +263,7 @@ allocate_usermemory_segment(_In_ WDFOBJECT device)
PHYSICAL_ADDRESS highest_acceptable_address;
PHYSICAL_ADDRESS boundary_address_multiple;
- lowest_acceptable_address.QuadPart = 0x0000000000800000;
+ lowest_acceptable_address.QuadPart = 0x0000000000000000;
highest_acceptable_address.QuadPart = 0xFFFFFFFFFFFFFFFF;
boundary_address_multiple.QuadPart = 0;