Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp727642pxb; Fri, 14 Jan 2022 15:08:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJybGo8nsdXdMQkSlDxghnfvQsdP64R49cSTU2bUecc9bD3L/DMg63jRJYsrCLCSVShtj3Z3 X-Received: by 2002:a17:902:cece:b0:14a:73bb:e75 with SMTP id d14-20020a170902cece00b0014a73bb0e75mr11642297plg.115.1642201697251; Fri, 14 Jan 2022 15:08:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642201697; cv=none; d=google.com; s=arc-20160816; b=oyqt5TLFrIiLJN1kv4ufau5Ejz12RJMRJUA+rIgoVpEZm2HRDkps8iCdN9vSGoxRMJ g/Upvg/Mt9FHNRdcuVTVmneCSJwvqabF1H6+fxs6JF9Ys6DqIyeI42KD0NZRJpygrfhS 2AzylAsLtNKFgwjhFW2zypg7bxe9AoEF3rXQybUH7v7eg6E2/tkg/dabW1u2OEtR1Rrf jsNQ/hYrgU4mSVeTf/ckYRr1ako8FJsqaBNL4HMzTH6EaeRYVB1FhNAdHD5PRkAbZ6I6 wTqDylf3JNgUZub+W5Q/0+LxVvhtzo+vKmroQjdN6PIlHVNpZpDsqJjH7w5jZI4Zdz4g PKIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=UkKeSu65T5ctZpzUDvUnwr9cBRiQwrvzgS25iMOY188=; b=r9MhSgi/1KC10Opm4uYj+D5CEi7M8089GtyPT3oh0PACysdxVrR7yiJdE3/4ef/kiL teJ++LkJLHk4L8eY2o+YYKE0Bypdf9pxhHcW5QtGLTeo4Ww5zyl2EZs+mgeZ6ag6c9vd FAtKziPUSKQwrZnamEV2Vk2Nm5qOPQegROQcdEV7RrfiuzKgCKZNA6+ZP436SPv8TZJo uwwp2ACCQjHiV0qDaPdcW0RgaZ+Weoaim4B0y81qz+37sJf967wa4pEH9Ff7EeF6Kf7C WW84+fcOp4ajE3dc6SnXtS/QNh+4+yXOrHTf1JuqVb932Un9kEQHt6SkoP/R8mB7dhMG FEIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z7eLuaFK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h11si7489787pgl.244.2022.01.14.15.08.05; Fri, 14 Jan 2022 15:08:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Z7eLuaFK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbiANVHg (ORCPT + 99 others); Fri, 14 Jan 2022 16:07:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbiANVHf (ORCPT ); Fri, 14 Jan 2022 16:07:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3069DC06161C; Fri, 14 Jan 2022 13:07:35 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id ECA88B82A28; Fri, 14 Jan 2022 21:07:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43703C36AE9; Fri, 14 Jan 2022 21:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1642194452; bh=ZL7v3SjQIdKufAKqWNrLkle1oD9dG0wh6lJBBoIu6+w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Z7eLuaFKMW1RHr6hy8fkkVtQhncSszfBq+4pa8xmWkX/FsFkoPdfFIKntonMDNs4M Hji2k3S74pwnfTZAdyTKX4sZjWhbcQX3CWFVhHpnr1VfFHV2zbf7SFFo+/pGeb8c1C dqD1ETWX7AJ9Hhd/Q3XArjBu9OFctdDPFv7u2Q7sVXQjmvazDBxwhYsN9LKqcKUca/ eBByR+O1t4QxYx4SxTGP9xklOYqadIO+S5qxK/zF0isaUuExb9UJ5xVmYuTUf2G1i3 XNDrwRBaBdKsPRbQMBMlSB4sycaILXf3ACL8PrU031idel235b2H8qmJd0CePTgsoF 4eSVhs48OyKLQ== Date: Fri, 14 Jan 2022 23:07:19 +0200 From: Jarkko Sakkinen To: Tadeusz Struk Cc: Tadeusz Struk , Jason Gunthorpe , linux-integrity@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] tpm: Fix error handling in async work Message-ID: References: <20220111055228.1830-1-tstruk@gmail.com> <3c2eeee7-0d3e-8000-67ad-3054f229cbe0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3c2eeee7-0d3e-8000-67ad-3054f229cbe0@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 12, 2022 at 10:47:29AM -0800, Tadeusz Struk wrote: > On 1/12/22 10:35, Jarkko Sakkinen wrote: > > These look good to me! Thank you. I'm in process of compiling a test > > kernel. > > Thanks Jarkko, > You can run the new test before and after applying the change and see > how it behaves. Also just noticed a mistake in the comment, sorry but > it was quite late when I sent it. > > + /* > + * If ret is > 0 then tpm_dev_transmit returned the size of the > + * response. If ret is < 0 then tpm_dev_transmit failed and > + * returned a return code. > + */ > > In the above could you please replace: > > s/returned a return code/returned an error code/ > > before applying the patch. I would appreciate that. Please send new versions, there's also this: def test_flush_invlid_context() I'd figure "invlid" should be "invalid" You can add, as these changes do not change the semantics of the patches: Tested-by: Jarkko Sakkinen It's always best if you author the final version, as then a clear reference on what was accepted exist at lore.kernel.org. BR, Jarkko