diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2020-11-12 13:59:32 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-11-12 16:44:38 +0300 |
commit | 2a656cad337e0e1ca582f58847d7b0c7eeba4dc8 (patch) | |
tree | 1c9e527318ff3af65f52d4076da2a2ebfcf2e4f0 /arch/xtensa | |
parent | 13f876ba77ebd5125799bb042201f22cf73df154 (diff) | |
download | linux-2a656cad337e0e1ca582f58847d7b0c7eeba4dc8.tar.xz |
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: 298fa1ad5571 ("highmem: Provide generic variant of kmap_atomic*")
Reported-by: vtolkm@googlemail.com
Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/r/87y2j6n8mj.fsf@nanos.tec.linutronix.de
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions