Merge "msm: mdss: Memset commit structure in compat path"

This commit is contained in:
Linux Build Service Account 2017-01-05 02:08:49 -08:00 committed by Gerrit - the friendly Code Review server
commit fbc0f1b44f
2 changed files with 3 additions and 0 deletions

View file

@ -313,6 +313,8 @@ static int __compat_atomic_commit(struct fb_info *info, unsigned int cmd,
ret = -EFAULT;
return ret;
}
memset(&commit, 0, sizeof(struct mdp_layer_commit));
__copy_atomic_commit_struct(&commit, &commit32);
if (commit32.commit_v1.output_layer) {

View file

@ -536,6 +536,7 @@ struct mdp_layer_commit_v1_32 {
int retire_fence;
compat_caddr_t dest_scaler;
uint32_t dest_scaler_cnt;
compat_caddr_t frc_info;
uint32_t reserved[MDP_LAYER_COMMIT_V1_PAD];
};