msm: mdss: Validate destination scaler based on count
If destination scaler count value is 0, don't parse destination scaler structure in validate IOCTL. Change-Id: Ie65b7b0b304108990406e25db55ee841f9316e17 Signed-off-by: Jayant Shekhar <jshekhar@codeaurora.org>
This commit is contained in:
parent
630218f710
commit
7dfdf9a420
1 changed files with 4 additions and 3 deletions
|
@ -2595,9 +2595,10 @@ static int __validate_layers(struct msm_fb_data_type *mfd,
|
||||||
}
|
}
|
||||||
|
|
||||||
ds_data = commit->dest_scaler;
|
ds_data = commit->dest_scaler;
|
||||||
if (test_bit(MDSS_CAPS_DEST_SCALER, mdata->mdss_caps_map) &&
|
|
||||||
ds_data && (ds_data->flags & MDP_DESTSCALER_ENABLE) &&
|
if (test_bit(MDSS_CAPS_DEST_SCALER, mdata->mdss_caps_map)
|
||||||
commit->dest_scaler_cnt) {
|
&& ds_data && commit->dest_scaler_cnt
|
||||||
|
&& (ds_data->flags & MDP_DESTSCALER_ENABLE)) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Find out which DS block to use based on DS commit info
|
* Find out which DS block to use based on DS commit info
|
||||||
|
|
Loading…
Add table
Reference in a new issue