Li Zefan 20ca9b3f4c 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>
2008-12-23 15:58:21 -08:00
..
2008-11-27 10:11:53 +01:00
2008-11-30 10:03:37 -08:00
2008-10-16 11:21:30 -07:00
2008-12-10 14:40:45 -08:00
2008-03-30 14:18:41 -07:00
2008-09-14 16:25:35 +02:00
2008-11-19 18:49:58 -08:00
2008-07-28 14:37:38 +02:00
2007-07-16 09:05:50 -07:00
2008-12-10 08:01:54 -08:00
2008-08-13 12:55:10 +02:00
2008-12-01 19:55:24 -08:00
2008-09-02 19:21:40 -07:00
2008-11-30 10:03:37 -08:00
2008-11-30 11:00:15 -08:00
2008-10-21 15:59:53 +02:00
2008-11-11 11:57:22 +01:00
2008-11-05 10:30:14 +01:00
2008-12-09 19:27:03 +01:00
2007-07-16 09:05:50 -07:00
2008-11-06 08:41:56 +01:00
2008-02-06 10:41:02 -08:00
2008-11-19 18:49:57 -08:00
2008-07-25 10:53:45 -07:00
2008-10-16 11:21:47 -07:00
2008-10-16 11:21:31 -07:00