Commit 8d4d0709 authored by Ma Wupeng's avatar Ma Wupeng Committed by Wupeng Ma
Browse files

mm: gmem: Save vm_flags to gmf during mmap

euleros inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7WLVX



---------------------------------------------

During mmap_region, vm_flags is not save in gmf which lead to prot
in gmf is always VM_NONE.

To fix this, update prot to gmf during init.

Fixes: 848492f2 ("mm: gmem: Introduce vm_object for gmem")
Signed-off-by: default avatarMa Wupeng <mawupeng1@huawei.com>
parent 86b04026
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment