From ed8ae25f2a054702c970a18d2e191db03c9ce783 Mon Sep 17 00:00:00 2001 From: Jeevan Shriram Date: Mon, 9 Nov 2015 10:53:21 -0800 Subject: [PATCH] cgroup: fix uninitialized usage of a variable It is possible that 'root' variable is used uninitialized. This change avoids usage of uninitialized usage of the variable. Change-Id: I9a3bd941a23736cb003f209cf6dde84fd859e9e6 Signed-off-by: Jeevan Shriram --- kernel/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cgroup.c b/kernel/cgroup.c index a57b7c86871c..359d881f7ffe 100644 --- a/kernel/cgroup.c +++ b/kernel/cgroup.c @@ -2006,7 +2006,7 @@ static struct dentry *cgroup_mount(struct file_system_type *fs_type, { struct super_block *pinned_sb = NULL; struct cgroup_subsys *ss; - struct cgroup_root *root; + struct cgroup_root *root = NULL; struct cgroup_sb_opts opts; struct dentry *dentry; int ret;