diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-12-23 16:57:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-23 18:58:21 -0500 |
commit | 20ca9b3f4c6dfa0af8dd5b18a64df17eb994b54d (patch) | |
tree | 508c0b887653577a2e28dc238c820178593f0f91 /kernel/resource.c | |
parent | e368d3a836797ddf193b1ec18c97407a791d2451 (diff) |
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>
Diffstat (limited to 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions