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

Commit 0ddfa7d5 authored by Dan Carpenter's avatar Dan Carpenter Committed by Dave Airlie
Browse files

drm: off by one in drm_edid.c



m == num_est3_modes is one past the end of the est3_modes[].

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarAdam Jackson <ajax@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 3b9676e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1383,7 +1383,7 @@ drm_est3_modes(struct drm_connector *connector, struct detailed_timing *timing)
	for (i = 0; i < 6; i++) {
		for (j = 7; j > 0; j--) {
			m = (i * 8) + (7 - j);
			if (m > num_est3_modes)
			if (m >= num_est3_modes)
				break;
			if (est[i] & (1 << j)) {
				mode = drm_find_dmt(connector->dev,