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:
parent
1733d29922
commit
9abc0ee76f
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue