mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
linuxkpi: Fix an assertion in linux_free_kmem()
In the LinuxKPI, PAGE_MASK is the logical negation of FreeBSD's
PAGE_MASK, so the original assertion was simply incorrect.
Reported by: trasz
Tested by: trasz
Fixes: 6223d0b67a ("linuxkpi: Handle direct-mapped addresses in linux_free_kmem()")
This commit is contained in:
parent
b9cf989234
commit
f88bd1174a
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ linux_alloc_kmem(gfp_t flags, unsigned int order)
|
|||
void
|
||||
linux_free_kmem(vm_offset_t addr, unsigned int order)
|
||||
{
|
||||
KASSERT((addr & PAGE_MASK) == 0,
|
||||
KASSERT((addr & ~PAGE_MASK) == 0,
|
||||
("%s: addr %p is not page aligned", __func__, (void *)addr));
|
||||
|
||||
if (addr >= VM_MIN_KERNEL_ADDRESS && addr < VM_MAX_KERNEL_ADDRESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue