All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] Fix uninitialiazed variable bug
@ 2022-01-08 16:37 Ercan Ersoy
  2022-01-08 16:52 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Ercan Ersoy @ 2022-01-08 16:37 UTC (permalink / raw)
  To: security; +Cc: stable


This bug is in mem_cgroup_resize_max function
in mm/memcontrol.c source file.

Signed-off-by: Ercan Ersoy <ercanersoy@ercanersoy.net>
---
  mm/memcontrol.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 2ed5f2a0879d..977f58b8f1e6 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -3351,7 +3351,7 @@ static int mem_cgroup_resize_max(struct mem_cgroup 
*memcg,
  {
         bool enlarge = false;
         bool drained = false;
-       int ret;
+       int ret = 0;
         bool limits_invariant;
         struct page_counter *counter = memsw ? &memcg->memsw : 
&memcg->memory;

-- 
2.30.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-01-08 19:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-08 16:37 [PATCH 1/1] Fix uninitialiazed variable bug Ercan Ersoy
2022-01-08 16:52 ` Greg KH
2022-01-08 19:05   ` Linus Torvalds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.