Commit e270a13c authored by ZhangPeng's avatar ZhangPeng Committed by openeuler-sync-bot
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>
(cherry picked from commit 9f98927f)
parent 13bb9145
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment