Commit 73c85041 authored by liubo's avatar liubo Committed by openeuler-sync-bot
Browse files

etmem: Fixed an issue where the module reference counting is incorrect

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


CVE: NA

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

When the /proc/pid/idle_page and /proc/pid/swap_page are
opened, the try_module_get command is used to add reference
counting to prevent the module from being released.

However, if the file fails to be opened, the reference
count must be correctly released in the abnormal process.

Signed-off-by: default avatarliubo <liubo254@huawei.com>
(cherry picked from commit 02ca7219)
parent 6cdb8917
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment