]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
cgroups: avoid accessing uninitialized data in failure path
authorLi Zefan <lizf@cn.fujitsu.com>
Tue, 23 Dec 2008 21:57:14 +0000 (13:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 23 Dec 2008 23:58:21 +0000 (15:58 -0800)
commit20ca9b3f4c6dfa0af8dd5b18a64df17eb994b54d
tree508c0b887653577a2e28dc238c820178593f0f91
parente368d3a836797ddf193b1ec18c97407a791d2451
cgroups: avoid accessing uninitialized data in failure path

If cgroup_get_rootdir() failed, free_cg_links() will be called in the
failure path, but tmp_cg_links hasn't been initialized at that time.

I introduced this bug in the 2.6.27 merge window.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: Paul Menage <menage@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c