Merge "msm: camera: isp: Add null check for vfe_dev."

This commit is contained in:
Linux Build Service Account 2018-07-12 05:37:33 -07:00 committed by Gerrit - the friendly Code Review server
commit c236da24a2

View file

@ -528,6 +528,12 @@ static void msm_isp_cfg_framedrop_reg(
enum msm_vfe_input_src frame_src = SRC_TO_INTF(stream_info->stream_src); enum msm_vfe_input_src frame_src = SRC_TO_INTF(stream_info->stream_src);
int i; int i;
if (vfe_dev == NULL) {
pr_err("%s %d returning vfe_dev is NULL\n",
__func__, __LINE__);
return;
}
if (vfe_dev->axi_data.src_info[frame_src].frame_id >= if (vfe_dev->axi_data.src_info[frame_src].frame_id >=
stream_info->init_frame_drop) stream_info->init_frame_drop)
runtime_init_frame_drop = 0; runtime_init_frame_drop = 0;