summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-06-04 09:38:44 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-06-04 09:38:44 -0700
commit52183fb05b8f8db0705e230fc0b8a436512759a1 (patch)
treeefdcacf80088ebe04c5a6d03692f1e015f937693 /linux-core
parentcf1964f971cc298ece91064953f7d00ed13e541d (diff)
Fix crash in drm_mode_connector_update_edid_property
We need to initialize the edid_blob_ptr to NULL when we init a connector, otherwise drm_mode_connector_update_edid_property may think there's a valid EDID lying around and try to destroy it, causing a crash.
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_crtc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 4c6afd16..7a049da8 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -357,6 +357,7 @@ void drm_connector_init(struct drm_device *dev,
INIT_LIST_HEAD(&connector->user_modes);
INIT_LIST_HEAD(&connector->probed_modes);
INIT_LIST_HEAD(&connector->modes);
+ connector->edid_blob_ptr = NULL;
/* randr_connector? */
/* connector_set_monitor(connector)? */
/* check for connector_ignored(connector)? */