projects
/
platform
/
upstream
/
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:
64f669f
)
tests/gem_stress: prevent segfault in getopt parsing
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 14:01:09 +0000
(15:01 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Thu, 29 Nov 2012 14:01:09 +0000
(15:01 +0100)
Needs a terminal element in the long option array.
tests/gem_stress.c
patch
|
blob
|
history
diff --git
a/tests/gem_stress.c
b/tests/gem_stress.c
index
be306c5
..
54597af
100644
(file)
--- a/
tests/gem_stress.c
+++ b/
tests/gem_stress.c
@@
-650,6
+650,7
@@
static void parse_options(int argc, char **argv)
{"tile-size", 1, 0, TILESZ},
#define CHCK_RENDER 0xdead0003
{"check-render-cpyfn", 0, 0, CHCK_RENDER},
+ {NULL, 0, 0, 0},
};
options.scratch_buf_size = 256*4096;