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 <bkchan@codeaurora.org>
This commit is contained in:
parent
0a8e939a4e
commit
6e6fc49179
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue