Skip to content
Commit 8fad87bc authored by Liu Hua's avatar Liu Hua Committed by Russell King
Browse files

ARM: 8012/1: kdump: Avoid overflow when converting pfn to physaddr



When we configure CONFIG_ARM_LPAE=y, pfn << PAGE_SHIFT will
overflow if pfn >= 0x100000 in copy_oldmem_page.
So use __pfn_to_phys for converting.

Signed-off-by: default avatarLiu Hua <sdu.liu@huawei.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c7d442f4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment