From d8bd6804d31c6116703ed10d6ce7d6049853edf6 Mon Sep 17 00:00:00 2001 From: Dhoat Harpal Date: Wed, 4 May 2016 17:02:04 +0530 Subject: [PATCH] soc: qcom: glink_ssr: Fix uninitialized variable Initialize ss_info_leaf variable in glink_ssr_probe. CRs-Fixed: 1067981 Change-Id: I82b08ff548a9abb0538a0ba24f699a99547ec7b7 Signed-off-by: Dhoat Harpal --- drivers/soc/qcom/glink_ssr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/qcom/glink_ssr.c b/drivers/soc/qcom/glink_ssr.c index 4952e12ffe3c..a14d912b7536 100644 --- a/drivers/soc/qcom/glink_ssr.c +++ b/drivers/soc/qcom/glink_ssr.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -769,7 +769,7 @@ static int glink_ssr_probe(struct platform_device *pdev) struct device_node *phandle_node; struct restart_notifier_block *nb; struct subsys_info *ss_info; - struct subsys_info_leaf *ss_info_leaf; + struct subsys_info_leaf *ss_info_leaf = NULL; struct glink_link_info *link_info; char *key; const char *edge;