summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Wood <thomas.wood@intel.com>2014-02-07 17:03:39 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-02-11 14:35:09 +0100
commit01757d052c3427ee28b1a065652721877568a15f (patch)
treecfd59bfa420d32086ef24cc07e2a11e8001c0595 /tests
parente6737b8a4ef42109f82c13127d8e2e5da92eb79f (diff)
tests/gem_seqno_wrap: fix over allocation of arrays
Signed-off-by: Thomas Wood <thomas.wood@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_seqno_wrap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/gem_seqno_wrap.c b/tests/gem_seqno_wrap.c
index 40c6227e..e37365f1 100644
--- a/tests/gem_seqno_wrap.c
+++ b/tests/gem_seqno_wrap.c
@@ -207,13 +207,13 @@ static int run_sync_test(int num_buffers, bool verify)
batch_3d = intel_batchbuffer_alloc(bufmgr, intel_get_drm_devid(fd));
igt_assert(batch_3d);
- src = malloc(num_buffers * sizeof(**src));
+ src = malloc(num_buffers * sizeof(*src));
igt_assert(src);
- dst1 = malloc(num_buffers * sizeof(**dst1));
+ dst1 = malloc(num_buffers * sizeof(*dst1));
igt_assert(dst1);
- dst2 = malloc(num_buffers * sizeof(**dst2));
+ dst2 = malloc(num_buffers * sizeof(*dst2));
igt_assert(dst2);
s_src = malloc(num_buffers * sizeof(*s_src));