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

Commit 7c0450d8 authored by Abhijit Kulkarni's avatar Abhijit Kulkarni Committed by Abhijith Desai
Browse files

msm: mdss: fix use of uninitialized local variable



This change fixes unitilized local variable being used and
checks for the valid format in concurrent writeback case before
using the format parameters.

CRs-Fixed: 1110015
Change-Id: I61a3e20af1d0a4db7a7db454ae35b810639744ae
Signed-off-by: default avatarAbhijit Kulkarni <kabhijit@codeaurora.org>
parent b2b38028
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -5156,7 +5156,7 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
				u32 block)
				u32 block)
{
{
	int ret = 0;
	int ret = 0;
	u32 sum = 0;
	int sum = 0;
	char __iomem *v_base = NULL;
	char __iomem *v_base = NULL;
	unsigned long flag;
	unsigned long flag;
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();
	struct mdss_data_type *mdata = mdss_mdp_get_mdata();