Merge "msm: mdss: fix use of uninitialized local variable"
This commit is contained in:
commit
d7b12827ab
2 changed files with 6 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License version 2 and
|
||||||
|
@ -521,6 +521,10 @@ int mdss_mdp_writeback_prepare_cwb(struct mdss_mdp_ctl *ctl,
|
||||||
* updating img_width with buffer->planes[0].stride
|
* updating img_width with buffer->planes[0].stride
|
||||||
*/
|
*/
|
||||||
fmt = mdss_mdp_get_format_params(buffer->format);
|
fmt = mdss_mdp_get_format_params(buffer->format);
|
||||||
|
if (!fmt) {
|
||||||
|
pr_err("invalid format for cwb\n");
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
mdss_mdp_get_plane_sizes(fmt, ctx->img_width,
|
mdss_mdp_get_plane_sizes(fmt, ctx->img_width,
|
||||||
buffer->height, &ps, 0, 0);
|
buffer->height, &ps, 0, 0);
|
||||||
|
|
||||||
|
|
|
@ -5283,7 +5283,7 @@ static int pp_hist_collect(struct mdp_histogram_data *hist,
|
||||||
u32 block)
|
u32 block)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
u32 sum;
|
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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue