Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ca28587 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: mdss: size check before writing to edid buffer"

parents a3dbc7bd 0cda8523
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -543,7 +543,8 @@ static ssize_t hdmi_tx_sysfs_wta_edid(struct device *dev,
	}

	mutex_lock(&hdmi_ctrl->tx_lock);
	if (edid_size < EDID_BLOCK_SIZE) {
	if ((edid_size < EDID_BLOCK_SIZE) ||
		(edid_size > hdmi_ctrl->edid_buf_size)) {
		DEV_DBG("%s: disabling custom edid\n", __func__);

		ret = -EINVAL;