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
This commit is contained in:
Chris Michael 2015-03-11 17:09:48 -04:00 committed by Mike Blumenkrantz
parent 1733d29922
commit 9abc0ee76f
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,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;
}
}
}