[PATCH 1/1] Fix uninitialiazed variable bug

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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

Signed-off-by: Ercan Ersoy <ercanersoy@xxxxxxxxxxxxxx>
---
 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



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux