Fixes: c26e76418f49 ("tests/gem_exec_balancer: Manually calculate VLA struct sizes") Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> Cc: Arkadiusz Hiler <arkadiusz.hiler@xxxxxxxxx> --- tests/i915/gem_exec_balancer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/i915/gem_exec_balancer.c b/tests/i915/gem_exec_balancer.c index bb4911e17..b2074486a 100644 --- a/tests/i915/gem_exec_balancer.c +++ b/tests/i915/gem_exec_balancer.c @@ -123,7 +123,7 @@ static int __set_engines(int i915, uint32_t ctx, }; engines->extensions = 0; - memcpy(engines->engines, ci, sizeof(*ci)); + memcpy(engines->engines, ci, count * sizeof(*ci)); return __gem_context_set_param(i915, &p); } -- 2.20.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx