]> 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)
commit8cafaae8bddd9333e568268c90ee59ff1fc3a490
tree1311d6adefa5978e394b4adb898f09f55b455a86
parent05247dcd5c21995996e04729e5ed3c3452f1c1d4
ARC: mm: PAE40: Fix crash at munmap

commit cfecca68c403 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: cfecca68c403 ("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