]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: mm: PAE40: Fix crash at munmap
authorYuriy Kolerov <yuriy.kolerov@synopsys.com>
Mon, 28 Nov 2016 04:07:17 +0000 (07:07 +0300)
committerVineet Gupta <vgupta@synopsys.com>
Tue, 29 Nov 2016 17:12:08 +0000 (09:12 -0800)
commitaa72719c94b6ebdd66f49284a63a7f9a4811146f
tree1311d6adefa5978e394b4adb898f09f55b455a86
parentf0dcf79b3652661f0800c8f1b51958bdb0a5b0e7
ARC: mm: PAE40: Fix crash at munmap

commit e808548ca811 broke PAE40. Macro pfn_pte(pfn, prot) creates paddr
from pfn, but the page shift was getting truncated to 32 bits since we lost
the proper cast to 64 bits (for PAE400

Instead of reverting that commit, use a better helper which is 32/64 bits
safe just like ARM implementation.

Fixes: e808548ca811 ("ARC: mm: fix build breakage with STRICT_MM_TYPECHECKS")
Cc: <stable@vger.kernel.org> #4.4+
Signed-off-by: Yuriy Kolerov <yuriy.kolerov@synopsys.com>
[vgupta: massaged changelog]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/pgtable.h