summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorJeevan Shriram <jshriram@codeaurora.org>2015-11-09 10:53:21 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:12:09 -0700
commited8ae25f2a054702c970a18d2e191db03c9ce783 (patch)
tree9a42c856bfbff8f6ea8d1acaa5df6e62d76b8e29 /kernel
parent105850528ec991db4f9f213c4b6f2d59e3d1046f (diff)
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 <jshriram@codeaurora.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup.c2
1 files changed, 1 insertions, 1 deletions
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;