From 3d6fde51bce7b518dbcf936a1b78b74038b3e4f8 Mon Sep 17 00:00:00 2001 From: Hui Li Date: Fri, 16 Apr 2021 14:20:28 +0800 Subject: [PATCH] msm: kgsl: Initialize local variable Initialize local variable to fix uninitialized use of variable in devfreq_gpubw_get_target(). Change-Id: Iee6e4b31b9b9ee746612a0e7842a183840c4f855 Signed-off-by: Hui Li --- drivers/gpu/msm/governor_gpubw_mon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/msm/governor_gpubw_mon.c b/drivers/gpu/msm/governor_gpubw_mon.c index f6e41577ca95..fabcd56b3776 100644 --- a/drivers/gpu/msm/governor_gpubw_mon.c +++ b/drivers/gpu/msm/governor_gpubw_mon.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2014-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2014-2021, The Linux Foundation. All rights reserved. */ #include @@ -96,7 +96,7 @@ static int devfreq_gpubw_get_target(struct devfreq *df, struct msm_busmon_extended_profile, profile); struct devfreq_dev_status *stats = &df->last_status; - struct xstats b; + struct xstats b = {0}; int result; int act_level; int norm_max_cycles;