Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1531644imm; Wed, 17 Oct 2018 23:07:08 -0700 (PDT) X-Google-Smtp-Source: ACcGV61+el3Vh8uLx2jQ2TjcXXS8qc2ulWY/TS4MJDL8c8QXEaw0ZVc0TjtpIldifNq5KzaVf8cp X-Received: by 2002:a17:902:7587:: with SMTP id j7-v6mr1172203pll.67.1539842828876; Wed, 17 Oct 2018 23:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539842828; cv=none; d=google.com; s=arc-20160816; b=vwDm79dIQgRo6m+5AhHP0I0aXJ9B8cf+QWsos09UFOcHRXIqdnr91+wO4+lMjyqNQI hWV+tXN4r1nIi0iFPivz+xcdvrWZGFnefak0pZkKpy3gqnah3X3Z9gnVLxdrIActwY+w U1/XSu54QYzLycj7224mpWy+sHfhyI7bcUwt92lO4n8gsF/znX9E0fKGNJZUw70ZpW1P jpBhbsyxVQV7roAZZ2hUrG6D7wLFxfjp8PDh6RSE42ypPXLNWUKq3+qbxTfA6+7H+6eK 3obMFiBxWySqMdfyU0Fo+f3WDsUgGV+5nXW30udRYxstLAyxe2pHPQugiJ3UW+pB2OkU 5Drw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=OOEwKZJI9Cg90K2wcSUBeCYQ6/0IWiDA6Jw01QcKKKs=; b=HlLulpBW5YKmYt0Y+tVplrcvWEFI4G2ROu05QC2gHoGv2/3CtcLyG47RLOQnYSKsSG qzIXaTIkRSN0pL+x81iJtiGSsMSv3sV8eBXyc8QLB2Wh4+7x6qAf6ioBkZMveQU7zJBk ZlI3vk4uQJ+W4Niw7AGB92jGn0A+/ciUsEd3QW2FurRYFGtfaS9ckifl0hu+Astayczc BOtAJARCQQ+McpD9Xf7VzKetjs8W7vFD3nUfDcR/vugNGfLGTSdCCsDzHbZsCEYhMGz8 J6vPI+kgUNx6qbQAwBviTVeRU7zKD3THc6NGYh3TTz4ryM28wce6ydPztE36lxViwcAM LaCA== 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 l189-v6si19124106pgd.27.2018.10.17.23.06.51; Wed, 17 Oct 2018 23:07:08 -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 S1727518AbeJROFu convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Oct 2018 10:05:50 -0400 Received: from mga05.intel.com ([192.55.52.43]:25015 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbeJROFt (ORCPT ); Thu, 18 Oct 2018 10:05:49 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2018 23:06:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,395,1534834800"; d="scan'208";a="96236708" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga002.fm.intel.com with ESMTP; 17 Oct 2018 23:06:26 -0700 Received: from fmsmsx116.amr.corp.intel.com (10.18.116.20) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Oct 2018 23:06:26 -0700 Received: from lcsmsx153.ger.corp.intel.com (10.186.165.228) by fmsmsx116.amr.corp.intel.com (10.18.116.20) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 17 Oct 2018 23:06:26 -0700 Received: from HASMSX109.ger.corp.intel.com ([169.254.3.28]) by LCSMSX153.ger.corp.intel.com ([169.254.8.212]) with mapi id 14.03.0319.002; Thu, 18 Oct 2018 09:06:23 +0300 From: "Winkler, Tomas" To: Jarkko Sakkinen CC: 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. Thread-Topic: [PATCH] tpm: tpm_try_transmit() refactor error flow. Thread-Index: AQHUZneRpMm4aXcqcE6txCcRpwrMbKUkg60w Date: Thu, 18 Oct 2018 06:06:23 +0000 Message-ID: <5B8DA87D05A7694D9FA63FD143655C1B9D9F5512@hasmsx109.ger.corp.intel.com> References: <20181016133716.17842-1-tomas.winkler@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNTE1YjBhYzAtZjdhNi00ZDI5LWFkNDEtYmNhNTNjYjY4NTM4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoia0FPYzVqQlFBZ3ZSaktNTjUxR0oyWUg0NmthdHI0aU9WbHNiS1RseUR1ck1XOUhcLzhaMUZMUElxRThaZjNVQ2IifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.12.116.154] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----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