[Intel-gfx] [PATCH i-g-t] i915/gem_exec_balancer: Fix typo in memcpy
Chris Wilson
chris at chris-wilson.co.uk
Thu Jun 6 17:22:49 UTC 2019
Fixes: c26e76418f49 ("tests/gem_exec_balancer: Manually calculate VLA struct sizes")
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Arkadiusz Hiler <arkadiusz.hiler at intel.com>
---
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
More information about the Intel-gfx
mailing list