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

Commit 1baee586 authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

udl: handle EDID failure properly.



Don't oops seems proper.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent cfb63baf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -61,6 +61,10 @@ static int udl_get_modes(struct drm_connector *connector)
	int ret;

	edid = (struct edid *)udl_get_edid(udl);
	if (!edid) {
		drm_mode_connector_update_edid_property(connector, NULL);
		return 0;
	}

	/*
	 * We only read the main block, but if the monitor reports extension