Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t] i915/gem_exec_balancer: Fix typo in memcpy
Date: Thu,  6 Jun 2019 18:22:49 +0100	[thread overview]
Message-ID: <20190606172249.8418-1-chris@chris-wilson.co.uk> (raw)

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

             reply	other threads:[~2019-06-06 17:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-06 17:22 Chris Wilson [this message]
2019-06-06 18:04 ` [igt-dev] ✓ Fi.CI.BAT: success for i915/gem_exec_balancer: Fix typo in memcpy 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190606172249.8418-1-chris@chris-wilson.co.uk \
    --to=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox