]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.8.8/udl-handle-edid-failure-properly.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.8.8 / udl-handle-edid-failure-properly.patch
1 From 1baee58638fc58248625255f5c5fcdb987f11b1f Mon Sep 17 00:00:00 2001
2 From: Dave Airlie <airlied@gmail.com>
3 Date: Fri, 12 Apr 2013 13:25:20 +1000
4 Subject: udl: handle EDID failure properly.
5
6 From: Dave Airlie <airlied@gmail.com>
7
8 commit 1baee58638fc58248625255f5c5fcdb987f11b1f upstream.
9
10 Don't oops seems proper.
11
12 Signed-off-by: Dave Airlie <airlied@redhat.com>
13 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
14
15 ---
16 drivers/gpu/drm/udl/udl_connector.c | 4 ++++
17 1 file changed, 4 insertions(+)
18
19 --- a/drivers/gpu/drm/udl/udl_connector.c
20 +++ b/drivers/gpu/drm/udl/udl_connector.c
21 @@ -61,6 +61,10 @@ static int udl_get_modes(struct drm_conn
22 int ret;
23
24 edid = (struct edid *)udl_get_edid(udl);
25 + if (!edid) {
26 + drm_mode_connector_update_edid_property(connector, NULL);
27 + return 0;
28 + }
29
30 /*
31 * We only read the main block, but if the monitor reports extension