diff options
author | Phil Carmody <ext-phil.2.carmody@nokia.com> | 2010-05-26 17:42:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-27 12:12:44 -0400 |
commit | 315c1998e10527ff364a9883048455e609bc7232 (patch) | |
tree | 081c072b7e7a48df369fd80142e611c3f36d3cfd /mm/memcontrol.c | |
parent | 5407a56257b6ade44fd9bcac972c99845b7413cd (diff) |
mm: memcontrol - uninitialised return value
Only an out of memory error will cause ret to be set.
Signed-off-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
Acked-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memcontrol.c')
-rw-r--r-- | mm/memcontrol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 93b0239bc34d..8c200e86da4c 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c | |||
@@ -3563,7 +3563,7 @@ static int mem_cgroup_usage_unregister_event(struct cgroup *cgrp, | |||
3563 | int type = MEMFILE_TYPE(cft->private); | 3563 | int type = MEMFILE_TYPE(cft->private); |
3564 | u64 usage; | 3564 | u64 usage; |
3565 | int size = 0; | 3565 | int size = 0; |
3566 | int i, j, ret; | 3566 | int i, j, ret = 0; |
3567 | 3567 | ||
3568 | mutex_lock(&memcg->thresholds_lock); | 3568 | mutex_lock(&memcg->thresholds_lock); |
3569 | if (type == _MEM) | 3569 | if (type == _MEM) |