From patchwork Fri Feb 7 17:03:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Wood X-Patchwork-Id: 3606811 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C72ABBF418 for ; Fri, 7 Feb 2014 17:03:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C82F920117 for ; Fri, 7 Feb 2014 17:03:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 0BDD420114 for ; Fri, 7 Feb 2014 17:03:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DEC87FB805; Fri, 7 Feb 2014 09:03:56 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org 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) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=/YzNLdrUd60lZ3+3hjv+0811zel6Kbixs6J5xynP4p8=; b=fifTPR79ndVCw5jc4AR7zrHOOOD6izSt3fa5GLFhoTyaX/W3xdDWPxcQsgrrcvmgDy VeEw1Jk3bp0lMW6hjq4jxJ+/Sm1sW/4zxr35l4Cikv3UZuSYkW9DkDdfqLRRy9pzxnzg p0g6iCu6UaMTvthkj9aRFy0qZhLxzMJoUByvv5q3N0tbMzvaZavuKEKq4LCFp7MN2XZt dFg1Ubjamn6mikn9n1QxCzuShfRRlZsYhxoe6qcV7eyc4XcWLW1OAR8YVixt4x9Yfck+ Q/RknTPFXJI/b9Z+CrVl5jc1pGq/OWPBKuut0QkncAkGO9Zm6FKx5XQh7v1DhpFXAlw2 vEUg== X-Gm-Message-State: ALoCoQmrNQwteFdof6QDmGmwdTsHaFcuZCi0ddinDYEeHYG+qFtSwOdhLRPQF3pbBtqOy/rnkSKj X-Received: by 10.195.12.200 with SMTP id es8mr1876487wjd.77.1391792625059; Fri, 07 Feb 2014 09:03:45 -0800 (PST) Received: from pistachio.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id ea4sm9771711wib.7.2014.02.07.09.03.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Feb 2014 09:03:44 -0800 (PST) From: Thomas Wood To: intel-gfx@lists.freedesktop.org Date: Fri, 7 Feb 2014 17:03:39 +0000 Message-Id: <1391792619-17110-4-git-send-email-thomas.wood@intel.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> References: <1391792619-17110-1-git-send-email-thomas.wood@intel.com> Subject: [Intel-gfx] [PATCH i-g-t 3/3] tests/gem_seqno_wrap: fix over allocation of buffers X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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));