From 6e6fc49179a3dba567bcfd5eb2ac6707314b15fa Mon Sep 17 00:00:00 2001 From: Benjamin Chan Date: Wed, 11 Jan 2017 02:41:56 -0500 Subject: [PATCH] msm: sde: Fix variable initialization in SDE rotator Properly initialize local variable in the SDE rotator WB done handler. Under error condition, it is possible that the handler access the uninitialized variable. CRs-Fixed: 1110015 Change-Id: I4c76fd6400c528f5dd7773aa9b3718dd86b2b01a Signed-off-by: Benjamin Chan --- drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c b/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c index e0f44be222d6..f9dc34167c59 100644 --- a/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c +++ b/drivers/media/platform/msm/sde/rotator/sde_rotator_r1_wb.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2017, 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 @@ -317,7 +317,7 @@ static int sde_mdp_wb_wait4comp(struct sde_mdp_ctl *ctl, void *arg) struct sde_mdp_writeback_ctx *ctx; int rc = 0; u64 rot_time = 0; - u32 status, mask, isr; + u32 status, mask, isr = 0; ctx = (struct sde_mdp_writeback_ctx *) ctl->priv_data; if (!ctx) {