RISC-V: Acquire mmap lock before invoking walk_page_range
As per walk_page_range documentation, mmap lock should be acquired by the caller before invoking walk_page_range. mmap_assert_locked gets triggered without that. The details can be found here. http://lists.infradead.org/pipermail/linux-riscv/2020-June/010335.html Fixes: 395a21ff(riscv: add ARCH_HAS_SET_DIRECT_MAP support) Signed-off-by: NAtish Patra <atish.patra@wdc.com> Reviewed-by: NMichel Lespinasse <walken@google.com> Reviewed-by: NZong Li <zong.li@sifive.com> Signed-off-by: NPalmer Dabbelt <palmerdabbelt@google.com>
Showing
想要评论请 注册 或 登录