Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109175170
D46661.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
726 B
Referenced Files
None
Subscribers
None
D46661.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_page.c b/sys/compat/linuxkpi/common/src/linux_page.c
--- a/sys/compat/linuxkpi/common/src/linux_page.c
+++ b/sys/compat/linuxkpi/common/src/linux_page.c
@@ -182,12 +182,10 @@
size_t size = ((size_t)PAGE_SIZE) << order;
void *addr;
- if ((flags & GFP_DMA32) == 0) {
- addr = kmem_malloc(size, flags & GFP_NATIVE_MASK);
- } else {
- addr = kmem_alloc_contig(size, flags & GFP_NATIVE_MASK, 0,
- BUS_SPACE_MAXADDR_32BIT, PAGE_SIZE, 0, VM_MEMATTR_DEFAULT);
- }
+ addr = kmem_alloc_contig(size, flags & GFP_NATIVE_MASK, 0,
+ ((flags & GFP_DMA32) == 0) ? -1UL : BUS_SPACE_MAXADDR_32BIT,
+ PAGE_SIZE, 0, VM_MEMATTR_DEFAULT);
+
return ((vm_offset_t)addr);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 2, 6:47 PM (20 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16408146
Default Alt Text
D46661.diff (726 B)
Attached To
Mode
D46661: LinuxKPI: always use contig allocations in linux_alloc_kmem()
Attached
Detach File
Event Timeline
Log In to Comment