projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf1964f
)
Fix crash in drm_mode_connector_update_edid_property
author
Jesse Barnes
<jbarnes@jbarnes-t61.(none)>
Wed, 4 Jun 2008 16:38:44 +0000
(09:38 -0700)
committer
Jesse Barnes
<jbarnes@virtuousgeek.org>
Wed, 4 Jun 2008 16:38:44 +0000
(09:38 -0700)
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.
linux-core/drm_crtc.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_crtc.c
b/linux-core/drm_crtc.c
index
4c6afd1
..
7a049da
100644
(file)
--- 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)? */