Commit 02ca7219 authored by liubo's avatar liubo
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>
parent f65056c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment