projects
/
profile
/
extras
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
069e35e
)
kms_flip: Don't access freed data
author
Ville Syrjälä
<ville.syrjala@linux.intel.com>
Mon, 4 Mar 2013 13:34:07 +0000
(15:34 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Fri, 22 Mar 2013 11:19:57 +0000
(12:19 +0100)
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
tests/kms_flip.c
patch
|
blob
|
history
diff --git
a/tests/kms_flip.c
b/tests/kms_flip.c
index
cd8954c
..
596d07a
100644
(file)
--- a/
tests/kms_flip.c
+++ b/
tests/kms_flip.c
@@
-491,8
+491,8
@@
static void recreate_fb(struct test_output *o)
o->bpp, fb_info->stride,
r->handle, &new_fb_id));
- drmFree(r);
gem_close(drm_fd, r->handle);
+ drmFree(r);
do_or_die(drmModeRmFB(drm_fd, fb_info->fb_id));
o->fb_ids[o->current_fb_id] = new_fb_id;