[Devel] [PATCH RH7 2/2] lost css_put in hwpoison_filter_task()
Vasily Averin
vvs at virtuozzo.com
Wed Feb 12 09:16:11 MSK 2020
Signed-off-by: Vasily Averin <vvs at virtuozzo.com>
---
mm/memory-failure.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 643ec1aa8d1f..b6f47c2e823a 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -146,9 +146,10 @@ static int hwpoison_filter_task(struct page *p)
css = mem_cgroup_css(mem);
/* root_mem_cgroup has NULL dentries */
- if (!css->cgroup->dentry)
+ if (!css->cgroup->dentry) {
+ css_put(css);
return -EINVAL;
-
+ }
ino = css->cgroup->dentry->d_inode->i_ino;
css_put(css);
--
2.17.1
More information about the Devel
mailing list