Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 315c1998 authored by Phil Carmody's avatar Phil Carmody Committed by Linus Torvalds
Browse files

mm: memcontrol - uninitialised return value



Only an out of memory error will cause ret to be set.

Signed-off-by: default avatarPhil Carmody <ext-phil.2.carmody@nokia.com>
Acked-by: default avatarKirill A. Shutemov <kirill@shutemov.name>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: default avatarKAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5407a562
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3563,7 +3563,7 @@ static int mem_cgroup_usage_unregister_event(struct cgroup *cgrp,
	int type = MEMFILE_TYPE(cft->private);
	u64 usage;
	int size = 0;
	int i, j, ret;
	int i, j, ret = 0;

	mutex_lock(&memcg->thresholds_lock);
	if (type == _MEM)