From: Thomas Wood Subject: [PATCH i-g-t 3/3] tests/gem_seqno_wrap: fix over allocation of buffers Date: Fri, 7 Feb 2014 17:03:39 +0000 Message-ID: <1391792619-17110-4-git-send-email-thomas.wood@intel.com> References: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 23E71FB805 for ; Fri, 7 Feb 2014 09:03:46 -0800 (PST) Received: by mail-wi0-f172.google.com with SMTP id e4so1047818wiv.5 for ; Fri, 07 Feb 2014 09:03:45 -0800 (PST) In-Reply-To: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org Signed-off-by: Thomas Wood --- tests/gem_seqno_wrap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gem_seqno_wrap.c b/tests/gem_seqno_wrap.c index 40c6227..e37365f 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)); -- 1.8.5.3