Commit 6980e31e authored by Liu Shixin's avatar Liu Shixin
Browse files

memcg: fix use-after-free of mm_struct

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



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

Increment the mm_users of mm_struct to avoid use-after-free.

Fixes: 9bbb63c8 ("memcg: introduce per-memcg swapin interface")
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
parent 788cf5b6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment