HomeFreeBSD

linuxkpi: Fix an assertion in linux_free_kmem()

Description

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: 6223d0b67af9 ("linuxkpi: Handle direct-mapped addresses in linux_free_kmem()")

(cherry picked from commit f88bd1174aab1aff7fea7241ab6e103e769d2d7a)

Details

Provenance
markjAuthored on Oct 18 2023, 1:43 PM
Parents
rG4862eb8604d5: linuxkpi: Handle direct-mapped addresses in linux_free_kmem()
Branches
Unknown
Tags
Unknown