diff options
author | Chris Michael <devilhorns@comcast.net> | 2015-03-11 17:09:48 -0400 |
---|---|---|
committer | Boram Park <boram1288.park@samsung.com> | 2015-04-17 14:47:19 +0900 |
commit | 22eb61adf44244f2881d35ecc6ea309ee41dcab2 (patch) | |
tree | 08a971df7ebeaeff39972c1fc82380b6f63fd387 | |
parent | 0479617ca2120f345cf8ebc3e03218f5a800fda1 (diff) | |
download | efl-22eb61adf44244f2881d35ecc6ea309ee41dcab2.tar.gz |
ecore-drm: Return the index of the crtc from output_crtc_find
Summary:
Fix issue of invalid memory read from
ecore_drm_output_create. We call ecore_drm_output_crtc_find to get the
Index of the crtc to use, however prior to this commit the index was
not being returned (the actual crtc was)
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Reviewers: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2140
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_output.c b/src/lib/ecore_drm/ecore_drm_output.c index 93ca9da3fe..6e19169c2b 100644 --- a/src/lib/ecore_drm/ecore_drm_output.c +++ b/src/lib/ecore_drm/ecore_drm_output.c @@ -92,7 +92,7 @@ _ecore_drm_output_crtc_find(Ecore_Drm_Device *dev, drmModeRes *res, drmModeConne if ((p & (1 << i)) && (!(dev->crtc_allocator & (1 << res->crtcs[i])))) { - return res->crtcs[i]; + return i; } } } |