projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5407a56
)
mm: memcontrol - uninitialised return value
author
Phil Carmody
<
[email protected]
>
Wed, 26 May 2010 21:42:43 +0000
(14:42 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 27 May 2010 16:12:44 +0000
(09:12 -0700)
Only an out of memory error will cause ret to be set.
Signed-off-by: Phil Carmody <
[email protected]
>
Acked-by: Kirill A. Shutemov <
[email protected]
>
Cc: Balbir Singh <
[email protected]
>
Cc: Daisuke Nishimura <
[email protected]
>
Acked-by: KAMEZAWA Hiroyuki <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index 93b0239bc34dc658c324a1dc813da8b64dc16a4f..8c200e86da4cbc818b72db6e7ff3c72faf0480a9 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-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)