mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
exynos: disable crtc before freeing buffers
The crtc should be disabled before deallocating the buffers, otherwise leading to a use-after-free scenario, which can trigger all sorts of funny effects.
This commit is contained in:
parent
19419b04af
commit
e197e97d67
@ -821,6 +821,10 @@ fail_alloc:
|
||||
static void exynos_free(struct exynos_data *pdata) {
|
||||
unsigned i;
|
||||
|
||||
/* Disable the CRTC. */
|
||||
drmModeSetCrtc(pdata->fd, pdata->drm->crtc_id, 0,
|
||||
0, 0, &pdata->drm->connector_id, 1, NULL);
|
||||
|
||||
clean_up_pages(pdata->pages, pdata->num_pages);
|
||||
|
||||
free(pdata->pages);
|
||||
|
Loading…
x
Reference in New Issue
Block a user