]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: hugetlb: fix the wrong return value for huge_ptep_set_access_flags
authorHuang Shijie <shijie.huang@arm.com>
Wed, 11 Jan 2017 06:02:00 +0000 (14:02 +0800)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 11 Jan 2017 10:26:40 +0000 (10:26 +0000)
commit08411e90aeb3a7209ac499e22c2f6c0bcd2decf6
tree7ce800db22daf2d606a525b4a501c0fbb52e5dfa
parent56bfd77d2de4945a1b3920bf962cd2407ff74379
arm64: hugetlb: fix the wrong return value for huge_ptep_set_access_flags

In current code, the @changed always returns the last one's status for
the huge page with the contiguous bit set. This is really not what we
want. Even one of the PTEs is changed, we should tell it to the caller.

This patch fixes this issue.

Fixes: b54ac2bc7dbf ("arm64: hugetlb: add support for PTE contiguous bit")
Cc: <stable@vger.kernel.org> # 4.5.x-
Signed-off-by: Huang Shijie <shijie.huang@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/mm/hugetlbpage.c