The patch titled mm: memcontrol - uninitialised return value has been added to the -mm tree. Its filename is mm-memcontrol-uninitialised-return-value.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: mm: memcontrol - uninitialised return value From: Phil Carmody <ext-phil.2.carmody@xxxxxxxxx> Only an out of memory error will cause ret to be set. Signed-off-by: Phil Carmody <ext-phil.2.carmody@xxxxxxxxx> Acked-by: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx> Cc: Balbir Singh <balbir@xxxxxxxxxx> Cc: Daisuke Nishimura <nishimura@xxxxxxxxxxxxxxxxx> Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN mm/memcontrol.c~mm-memcontrol-uninitialised-return-value mm/memcontrol.c --- a/mm/memcontrol.c~mm-memcontrol-uninitialised-return-value +++ a/mm/memcontrol.c @@ -3598,7 +3598,7 @@ static int mem_cgroup_usage_unregister_e 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) _ Patches currently in -mm which might be from ext-phil.2.carmody@xxxxxxxxx are linux-next.patch errh-add-__must_check-to-error-pointer-handlers.patch hvsi-messed-up-error-checking-getting-state-name.patch mm-remove-unnecessary-use-of-atomic.patch mm-memcontrol-uninitialised-return-value.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html