From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS, USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 790B8C10F03 for ; Tue, 23 Apr 2019 15:05:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3EC89217D9 for ; Tue, 23 Apr 2019 15:05:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556031925; bh=D4X0euTLFLTFccMXJMs4LEXnAxX5/p8yaQs4VMUNxdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=o9oqub7i1Uio7Kck+PRRyY/D2lQJlQEpf9FTEXkeE4/keVSS2/nI1TOQW8tZPGePR Xg90H4QL5dH1ycp3kQfoXz3meKLXcbQeeqsPn71YHeF9Ws7rcHAbuIP+F+cNgpR2BG /qPeMAIP/FnGziGhn41L6f9U49ZriT9QrBud7dT0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727703AbfDWPFY (ORCPT ); Tue, 23 Apr 2019 11:05:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:48326 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727673AbfDWPFY (ORCPT ); Tue, 23 Apr 2019 11:05:24 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D3085206BA; Tue, 23 Apr 2019 15:05:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556031924; bh=D4X0euTLFLTFccMXJMs4LEXnAxX5/p8yaQs4VMUNxdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WohIQ5UyU4Azoa432XBTMPtkwBG7d6uCP98nhZdaiBeaJQZm+grSXQqwkYqWgldOo WkMnmw1dnuoJL+davCayV47qPH+5pZ9cm5ENRAlI7g3vjM4s2RdtcIhQOpIPi6yOrn vrMagciAshEjR9L9yV2bud6W4BLhTX0Vk4M7Aqbg= Date: Tue, 23 Apr 2019 11:05:22 -0400 From: Sasha Levin To: Jarkko Sakkinen Cc: stable@vger.kernel.org, Yue Haibing , James Morris Subject: Re: [PATCH v2] tpm: Fix the type of the return value in calc_tpm2_event_size() Message-ID: <20190423150522.GO17719@sasha-vm> References: <20190423130518.19166-1-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20190423130518.19166-1-jarkko.sakkinen@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Apr 23, 2019 at 04:05:18PM +0300, Jarkko Sakkinen wrote: >From: Yue Haibing > >commit b9d0a85d6b2e76630cfd4c475ee3af4109bfd87a upstream > >calc_tpm2_event_size() has an invalid signature because >it returns a 'size_t' where as its signature says that >it returns 'int'. > >Cc: >Fixes: 4d23cc323cdb ("tpm: add securityfs support for TPM 2.0 firmware event log") >Suggested-by: Jarkko Sakkinen >Signed-off-by: Yue Haibing >Reviewed-by: Jarkko Sakkinen >Signed-off-by: Jarkko Sakkinen >Signed-off-by: James Morris Queued for 5.0 and 4.19, thanks! -- Thanks, Sasha