Explorar o código

udl: handle EDID failure properly.

Don't oops seems proper.

Cc: stable@vger.kernel.org
Signed-off-by: Dave Airlie <airlied@redhat.com>
Dave Airlie %!s(int64=12) %!d(string=hai) anos
pai
achega
1baee58638
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      drivers/gpu/drm/udl/udl_connector.c

+ 4 - 0
drivers/gpu/drm/udl/udl_connector.c

@@ -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