mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 23:06:29 +00:00
kms_flip: Don't access freed data
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
069e35e0fc
commit
7da0af8855
@ -491,8 +491,8 @@ static void recreate_fb(struct test_output *o)
|
|||||||
o->bpp, fb_info->stride,
|
o->bpp, fb_info->stride,
|
||||||
r->handle, &new_fb_id));
|
r->handle, &new_fb_id));
|
||||||
|
|
||||||
drmFree(r);
|
|
||||||
gem_close(drm_fd, r->handle);
|
gem_close(drm_fd, r->handle);
|
||||||
|
drmFree(r);
|
||||||
do_or_die(drmModeRmFB(drm_fd, fb_info->fb_id));
|
do_or_die(drmModeRmFB(drm_fd, fb_info->fb_id));
|
||||||
|
|
||||||
o->fb_ids[o->current_fb_id] = new_fb_id;
|
o->fb_ids[o->current_fb_id] = new_fb_id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user