Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 50696377 authored by Hareesh Gundu's avatar Hareesh Gundu
Browse files

PM/devfreq: Fix uninitialized use of stat variable



Initialize stat variable to zero to avoid uninitialized use of
stat.private_data in the devfreq_vbif_ev_handler().

Change-Id: Ie34fad548214f287b67a8413c8658ebac65a95d3
Signed-off-by: default avatarHareesh Gundu <hareeshg@codeaurora.org>
parent 86691680
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2014, 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
@@ -74,6 +74,8 @@ static int devfreq_vbif_ev_handler(struct devfreq *devfreq,
	int ret;
	struct devfreq_dev_status stat;

	memset(&stat, 0, sizeof(stat));

	switch (event) {
	case DEVFREQ_GOV_START:
		mutex_lock(&df_lock);