Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp21708imm; Fri, 19 Oct 2018 16:35:10 -0700 (PDT) X-Google-Smtp-Source: ACcGV63dI0/gBUSwz8yNQVvtS9xenYiCliVTSFHF18HQ7SlpC8UVD2uUXG62KA483Hxasotn0KAE X-Received: by 2002:a17:902:8205:: with SMTP id x5-v6mr36354340pln.55.1539992110842; Fri, 19 Oct 2018 16:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539992110; cv=none; d=google.com; s=arc-20160816; b=YcbAdE9JaoyWSuzn6vyQXrpnRRwY/Gp7uOlrTV18E8wMMRDjySPU2LTGKXCT9uZUhu Ovx+E00CMlcJt9nKH5/gPEUdYSUJi0udjTVq09fRczT4HkHuW6JJqdih7k8JWVhrzS/+ jQbmnrC7Y7+d7ObZK3TAZqiwteAQHOsgwbfnkPG4K38wEZp4U4mIBF5+EdPf9//ZW35Z fyT6R74xLok/9UuzrxhU96VU2w3b/q2qQ0mjvAoIdxIKBzN7QbBY3P3LU3/Do3r7NYAL HOuf1y0IbJ3Xqs8asXJIzT+71sJw0jXV+l3VCdmMQZz67WNYCZaBeNL909byIqMDBzzz apCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=5MuZS4Kq8ZWR+5F+tnvZ6ALuyOE+rGfXDNIUPum/+3Q=; b=ZP/W+VCXnJhMpkOdewpsq/b1USVKSeKhupYIe/dXZkdJKNx5rYWDQCmBFqoH1jbrTo qK8kvpVorPuqzCD1tNzn/F5JsHNXbu39Jc62tNqlQTbN+UIdimU5CDnlz1JSWkBU6yCk glOMElf7rZu9ju0PRsim/zLewm3SpXzqCD5ZLC42oYWo5jmhUDPO+XtbJhGjnnSwV1xH oZad6xa3OWOOnPxt3Z9MfS18WJwN2kfIgIlYX78pz8r+2q0PUoX/Bk1UrC9FNMFWSzx3 bBqqdAq/eNxCLWeAOmHf87w9JurNXyulCsDmzsyETXizyWdZA9eCG6WNX1VGqTk0WZU0 9Tsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o9-v6si25753555pfe.283.2018.10.19.16.34.50; Fri, 19 Oct 2018 16:35:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbeJTHmh (ORCPT + 99 others); Sat, 20 Oct 2018 03:42:37 -0400 Received: from mga11.intel.com ([192.55.52.93]:10160 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbeJTHmg (ORCPT ); Sat, 20 Oct 2018 03:42:36 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Oct 2018 16:34:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,401,1534834800"; d="scan'208";a="98990071" Received: from kskibin-mobl.ger.corp.intel.com ([10.249.254.29]) by fmsmga004.fm.intel.com with ESMTP; 19 Oct 2018 16:34:22 -0700 Date: Sat, 20 Oct 2018 02:34:22 +0300 (EEST) From: Jarkko Sakkinen X-X-Sender: jsakkine@jsakkine-mobl1 To: "Winkler, Tomas" cc: Jarkko Sakkinen , Jason Gunthorpe , Nayna Jain , "Usyskin, Alexander" , "Struk, Tadeusz" , "linux-integrity@vger.kernel.org" , "linux-security-module@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "stable@vger.kernel.org" Subject: RE: [PATCH] tpm: tpm_try_transmit() refactor error flow. In-Reply-To: <5B8DA87D05A7694D9FA63FD143655C1B9D9F5512@hasmsx109.ger.corp.intel.com> Message-ID: References: <20181016133716.17842-1-tomas.winkler@intel.com> <5B8DA87D05A7694D9FA63FD143655C1B9D9F5512@hasmsx109.ger.corp.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 18 Oct 2018, Winkler, Tomas wrote: >> -----Original Message----- >> From: Jarkko Sakkinen [mailto:jarkko.sakkinen@linux.intel.com] >> Sent: Thursday, October 18, 2018 03:15 >> To: Winkler, Tomas >> Cc: Jarkko Sakkinen ; Jason Gunthorpe >> ; Nayna Jain ; Usyskin, >> Alexander ; Struk, Tadeusz >> ; linux-integrity@vger.kernel.org; linux-security- >> module@vger.kernel.org; linux-kernel@vger.kernel.org; >> stable@vger.kernel.org >> Subject: Re: [PATCH] tpm: tpm_try_transmit() refactor error flow. >> >> On Tue, 16 Oct 2018, Tomas Winkler wrote: >>> First, rename out_no_locality to out_locality for bailing out on both >>> tpm_cmd_ready() and tpm_request_locality() failure. >> >> This is unnecessary change and technically it is not a rename: the commit >> message text and the code change do not match. Rename is just a rename >> (i.e. change a variable name foo to bar). > > I'm renaming the label because it doesn't match the code flow anymore, > I can change the commit message, but you please review the code. > Tomas The flow change is unnecessary and does not really have anything to do with the bug fix. Earlier version was better than this and would have been fine when taking account the remark from Jason. /Jarkko