public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] i915/gem_exec_balancer: Fix typo in memcpy
@ 2019-06-06 17:22 Chris Wilson
  2019-06-06 18:04 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Wilson @ 2019-06-06 17:22 UTC (permalink / raw)
  To: intel-gfx; +Cc: igt-dev

Fixes: c26e76418f49 ("tests/gem_exec_balancer: Manually calculate VLA struct sizes")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Arkadiusz Hiler <arkadiusz.hiler@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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-06-09  1:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-06 17:22 [igt-dev] [PATCH i-g-t] i915/gem_exec_balancer: Fix typo in memcpy Chris Wilson
2019-06-06 18:04 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2019-06-07  7:00 ` [igt-dev] [PATCH i-g-t] " Arkadiusz Hiler
2019-06-09  1:44 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox