]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/mm: Check for pfn instead of page in vmalloc_sync_one()
authorJoerg Roedel <jroedel@suse.de>
Fri, 19 Jul 2019 18:46:50 +0000 (20:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:10:54 +0000 (10:10 +0200)
commitcd7d6544f7596b2f8d993f42c0a190e70e8c63c3
treed2b5578d95e75294d77dc20c2f77b8d262f8261f
parent93c009d61e81a8fe1169f90cb7c0eeddac7735d9
x86/mm: Check for pfn instead of page in vmalloc_sync_one()

commit 51b75b5b563a2637f9d8dc5bd02a31b2ff9e5ea0 upstream.

Do not require a struct page for the mapped memory location because it
might not exist. This can happen when an ioremapped region is mapped with
2MB pages.

Fixes: 5d72b4fba40ef ('x86, mm: support huge I/O mapping capability I/F')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: https://lkml.kernel.org/r/20190719184652.11391-2-joro@8bytes.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/mm/fault.c