Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp537721pxt; Thu, 5 Aug 2021 05:57:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweWBRVt26lPe4UlBIKfIt2/Ik0lT2APj7pszd1HaqdEN65sQ21AVYEXtADpOYYCEnfEc+j X-Received: by 2002:a5e:8d06:: with SMTP id m6mr23259ioj.18.1628168273406; Thu, 05 Aug 2021 05:57:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628168273; cv=none; d=google.com; s=arc-20160816; b=SYgso8LlRFKHEm2x8AoLSL38igsEWyGDc0a0LE4RtevFUD08QuAjJ7cuY3kGuLdftq YVhUPgoM95xrMZ/tmHP2RI/asr02ohxqxAFGwp+zRqCrrQ8cF9phRgGusEVpeBvmyS5s K0MLGYZh0zGKW4RD7T1+Uj5cBUw2syE8u4dtNLT4YYZjeC5iwCb9SNbojtkAJWL7G0oW Byt5XANbQBICv2O+kgSzboOrTAGpuVQSH4ET1wc2ODB8a00vs3E/5x48GZRECUmW3Cvu gI2uRiD8e2sWvTN7+3Trv7WzRQxhOxYhJl8D6/ApTlJzz3B7lZxfHndom+m3mFVNCap2 JBKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=7ge5WHZbuAvaZKamsN30ABRYbKGwJMY0vf3gdf58loo=; b=lkVDymzYlWd66Un+7uBM2aS5OA++p9gw7AtAku7a3aDVUvBCBW8FU+z/D/Y5aysqd8 L1IIuw7zLAs7PkoDwDx+aSfvr/ul361NniNWW1wQ7w+Myioq0C+lXtvsDcPllzJ/wKcH 5lClmqtyeCb9HbNOn+SyWFU1wwxYLNYdVJcnQzAOKIAo5iRKrsvxm0mY4J1CYsCrr9AR KusdKmZlRZCIpRtZ+9V7xQCl5juU+12KseW1qfB+QoUK5myMbohOp2sMDXtCFbOBLGFC yx95csZjO2sNtbCMs03WjUytE7dPfrtw7xIq9LpfX8Ih9VD/F2+d4bjPNDVw3rWuJ7um fuSQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c8si6366273ilq.88.2021.08.05.05.57.41; Thu, 05 Aug 2021 05:57:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240121AbhHEKC6 (ORCPT + 99 others); Thu, 5 Aug 2021 06:02:58 -0400 Received: from foss.arm.com ([217.140.110.172]:42156 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240008AbhHEKC6 (ORCPT ); Thu, 5 Aug 2021 06:02:58 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D42311FB; Thu, 5 Aug 2021 03:02:43 -0700 (PDT) Received: from e123427-lin.arm.com (unknown [10.57.41.33]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C4D2D3F719; Thu, 5 Aug 2021 03:02:41 -0700 (PDT) From: Lorenzo Pieralisi To: Shunyong Yang , kw@linux.com, bhelgaas@google.com, kishon@ti.com, leon@kernel.org Cc: Lorenzo Pieralisi , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2] tools: PCI: Zero-initialize param Date: Thu, 5 Aug 2021 11:02:34 +0100 Message-Id: <162815774159.31264.15024656618785005472.b4-ty@arm.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210714132331.5200-1-yang.shunyong@gmail.com> References: <20210714132331.5200-1-yang.shunyong@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 14 Jul 2021 21:23:31 +0800, Shunyong Yang wrote: > The values in param may be random if they are not initialized, which > may cause use_dma flag set even when "-d" option is not provided > in command line. Initializing all members to 0 to solve this. Applied to pci/tools, thanks! [1/1] tools: PCI: Zero-initialize param https://git.kernel.org/lpieralisi/pci/c/224d8031e4 Thanks, Lorenzo