Commit 9f98927f authored by ZhangPeng's avatar ZhangPeng Committed by Peng Zhang
Browse files

userswap: fix BUG_ON in userfaultfd_release()

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6CAIM



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

In some features of userfaultfd, vma->vm_userfaultfd_ctx.ctx may be NULL
but VM_USWAP is not cleared. No longer check whether vma->vm_flags has
VM_USWAP. Just remove the flag.

Signed-off-by: default avatarZhangPeng <zhangpeng362@huawei.com>
parent d8a73976
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment