Loading drivers/video/msm/mdss/mdss_hdmi_tx.c +5 −0 Original line number Diff line number Diff line Loading @@ -595,6 +595,11 @@ static ssize_t hdmi_tx_sysfs_rda_edid(struct device *dev, mutex_lock(&hdmi_ctrl->tx_lock); cea_blks = hdmi_ctrl->edid_buf[EDID_BLOCK_SIZE - 2]; if (cea_blks >= MAX_EDID_BLOCKS) { DEV_ERR("%s: invalid cea blocks\n", __func__); mutex_unlock(&hdmi_ctrl->tx_lock); return -EINVAL; } size = (cea_blks + 1) * EDID_BLOCK_SIZE; size = min_t(u32, size, PAGE_SIZE); Loading Loading
drivers/video/msm/mdss/mdss_hdmi_tx.c +5 −0 Original line number Diff line number Diff line Loading @@ -595,6 +595,11 @@ static ssize_t hdmi_tx_sysfs_rda_edid(struct device *dev, mutex_lock(&hdmi_ctrl->tx_lock); cea_blks = hdmi_ctrl->edid_buf[EDID_BLOCK_SIZE - 2]; if (cea_blks >= MAX_EDID_BLOCKS) { DEV_ERR("%s: invalid cea blocks\n", __func__); mutex_unlock(&hdmi_ctrl->tx_lock); return -EINVAL; } size = (cea_blks + 1) * EDID_BLOCK_SIZE; size = min_t(u32, size, PAGE_SIZE); Loading