Received: by 2002:ac0:8c9a:0:0:0:0:0 with SMTP id r26csp5512074ima; Tue, 5 Feb 2019 13:04:14 -0800 (PST) X-Google-Smtp-Source: AHgI3IacklWcfEmOAxw88kHvmQN35dDdUm1ImRVp4w59idzk+m0Gc0mZ1hvaiyMcNnflcsoVxDQw X-Received: by 2002:a17:902:7d90:: with SMTP id a16mr6877081plm.249.1549400654331; Tue, 05 Feb 2019 13:04:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549400654; cv=none; d=google.com; s=arc-20160816; b=FGuL1m5RqWjLErlw4LVlAY+gqALl0kDh6ud1YDaM1EoCE9oR3y8fEXaBiuzg3QFH8O KsXmGyC/pXn3vKyvUBHfksZ7B5j9DPDHqs692cVFJ3omaZ542f1ckmt0ELutUFLypWaW ZNxUUTHD0xA48bvI2ruweP+2IGUsl2j2q+LI5C4JXfIph276iGETUFDms7KC3Eu796MI 2PyYIDEGceMmi9MY+Jr3t68HgcT2OTzXkCmobpsUPBohjkG8ZkrcPaMbMHi+XGlB1Ez8 YtGh+ZEYwnHirpfr3tvyxxCXW+iWkP0qXlHm+JdoirDGQ/GKwWz8WVPjzaZ27myJXhw2 eIjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/+ZhiQ9HEradVSs6VrW8sPLvCjhCT3gEvAlAsCfM1jM=; b=wCB31jRb40gnkTdxcs+x1vQukRlQMHFjGc1XczYBnLO0A2hsPRc23XPKcKFXqSCuaq nZHEJAsWdGe2u7F6MgpgZJ/z9oGhC1eRzOCH3QxQfMg6nyhknN8IzAnZ5K/UgU1flie5 eA+7AMO4xPh5vSzXyYfbvXp8RwOnv40GmiNECa1ILSPC/QC/3mXFIKoJ4lpn9AmyuPko Tm2HCPuuCg/1DRWGxHUoOEQXbZBmYhrWLshFXasiNr73Vc1Q/ZsJplRCTVdb3z3RRx8h ubIITKuEP026qKR6z8fe1BPFpO1Z3WwRFrM7To++GyPCqfpELM5OGNen9Tgqr4g/OhZm +c9Q== 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 y40si699924pla.251.2019.02.05.13.03.57; Tue, 05 Feb 2019 13:04:14 -0800 (PST) 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 S1729703AbfBEVAH (ORCPT + 99 others); Tue, 5 Feb 2019 16:00:07 -0500 Received: from mga05.intel.com ([192.55.52.43]:45665 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfBEVAH (ORCPT ); Tue, 5 Feb 2019 16:00:07 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2019 13:00:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,336,1544515200"; d="scan'208";a="124222060" Received: from ibanaga-mobl1.ger.corp.intel.com (HELO localhost) ([10.249.254.171]) by orsmga003.jf.intel.com with ESMTP; 05 Feb 2019 12:59:57 -0800 Date: Tue, 5 Feb 2019 22:59:55 +0200 From: Jarkko Sakkinen To: James Bottomley Cc: linux-integrity@vger.kernel.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, roberto.sassu@huawei.com, zohar@linux.ibm.com, stable@vger.kernel.org Subject: Re: [PATCH v2] tpm/st33zp24: Fix the name collisions in tpm_st33zp24_spi and tpm_i2c_infineon Message-ID: <20190205205955.GC13023@linux.intel.com> References: <20190204133749.14176-1-jarkko.sakkinen@linux.intel.com> <1549395622.2923.14.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1549395622.2923.14.camel@HansenPartnership.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 05, 2019 at 02:40:22PM -0500, James Bottomley wrote: > On Mon, 2019-02-04 at 15:37 +0200, Jarkko Sakkinen wrote: > > diff --git a/drivers/char/tpm/tpm_i2c_infineon.c > > b/drivers/char/tpm/tpm_i2c_infineon.c > > index 9086edc9066b..b9d5a1dda8d2 100644 > > --- a/drivers/char/tpm/tpm_i2c_infineon.c > > +++ b/drivers/char/tpm/tpm_i2c_infineon.c > [...] > > @@ -527,8 +528,8 @@ static int tpm_tis_i2c_send(struct tpm_chip > > *chip, u8 *buf, size_t len) > > u8 retries = 0; > > u8 sts = TPM_STS_GO; > > > > - if (len > TPM_BUFSIZE) > > - return -E2BIG; /* command is too long for our > > tpm, sorry */ > > + if (len > TPM_I2C_INFINEON_BUFSIZE) > > TPM_I2C_INFINEON_MAX_BUFSIZE, surely, otherwise it won't compile ... > the kbuild robot just spotted this as well. Correct, unluckily, I had unstaged diff. /Jarkko