Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/highmem: Take kmap_high_get() properly into account
kunmap_local() warns when the virtual address to unmap is below PAGE_OFFSET. This is correct except for the case that the mapping was obtained via kmap_high_get() because the PKMAP addresses are right below PAGE_OFFSET. Cure it by skipping the WARN_ON() when the unmap was handled by kunmap_high(). Fixes: 298fa1a ("highmem: Provide generic variant of kmap_atomic*") Reported-by: [email protected] Reported-by: Marek Szyprowski <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Tested-by: Sebastian Andrzej Siewior <[email protected]> Cc: Andrew Morton <[email protected]> Link: https://lore.kernel.org/r/[email protected]
- Loading branch information