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, URIBL_BLOCKED,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 BE03DC282DA for ; Wed, 17 Apr 2019 16:34:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 81D642173C for ; Wed, 17 Apr 2019 16:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555518866; bh=utdCWOPFmyUAonLEY6V1+CcwKN5mIKpLCBTAEiNJKeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=TIH5gpQBxiSOH5NYWH7yxq3YCexea7oGAzTCn39U+dQ+tBuR6tTSAZszR1EtCCOas r5dSObtd/oGKckALSQ3QUgW6z7O4sp5Q/ZYra8XEs4Wx+gbeQnvraCL8fc776TbO6P 3g8C/+nRk1lVaxubzKslNBVe4qA3mpuEaxDEbMCY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731959AbfDQQe0 (ORCPT ); Wed, 17 Apr 2019 12:34:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:50504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730463AbfDQQeZ (ORCPT ); Wed, 17 Apr 2019 12:34:25 -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 18D0320663; Wed, 17 Apr 2019 16:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555518865; bh=utdCWOPFmyUAonLEY6V1+CcwKN5mIKpLCBTAEiNJKeA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iexKhElkWrELxWxweoZNz+w4Z6qcoeNNo3PuFf8CLlAmi56Zeskc1eSoW8A6Ml8NE mo7KoML2n/tTZWa7dpPEbLVPg4IRqxMDR1sw9m8Vdnj9QTNP/6lP8alZkPfq58uNP2 roFgJ6vN59KFfZbLr0zDqpfmkTU/c8WhSTnOkRko= Date: Wed, 17 Apr 2019 12:34:23 -0400 From: Sasha Levin To: Jarkko Sakkinen Cc: stable@vger.kernel.org, Yue Haibing Subject: Re: [PATCH] tpm: Fix the type of the return value in calc_tpm2_event_size() Message-ID: <20190417163423.GD435@sasha-vm> References: <20190417152420.18170-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: <20190417152420.18170-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 Wed, Apr 17, 2019 at 06:24:20PM +0300, Jarkko Sakkinen wrote: >From: Yue Haibing > >commit 32312418625764cdf740890ac9c78ca26a6a9d24 upstream This is really commit b9d0a85d6b2e76630cfd4c475ee3af4109bfd87a upstream (looks like James added his S-O-B which changed the commit hash). >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 I've queued it for 5.0, thanks! -- Thanks, Sasha