Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1455800iog; Tue, 14 Jun 2022 06:30:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSnXp9iG7L/1StUoWZIM+am4fy/5EZBQcyP+yA/amPRMjJl/3mMkLxGTH7aB3Uydfexr6P X-Received: by 2002:a17:906:64cc:b0:712:34ed:d719 with SMTP id p12-20020a17090664cc00b0071234edd719mr4537814ejn.239.1655213411634; Tue, 14 Jun 2022 06:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655213411; cv=none; d=google.com; s=arc-20160816; b=hZu0qHDHlK131HkO8LAbX9y+qQh1bfmf0Z0PVzIkg6asMcVX5YZB/kKGKjDq1Eqzd2 c6oHtkW3Hs2GN8TB8XhKHJbxsx+UtG2SSdPh9jRExle19ap2t3YJaGl8Zk1PJFRfQFiO xtt3R7HSur0dvWAa5R0Pih/i0YV3Mq1I7c5wc5pv0VVUcWZLc0a3dvf3q5E1puPdHifL apOe8z6/vz11E4YGpoHP1uddIO3uQ7VHNHbxUeoFh6PVca5b7wk5GKJ/iyeQzHWn0mwc dFRVYaaMwLc40AByanZKFjv/FoQ2e++ET8MdNZsDGC5tAmg2SP5d6K9g4fIk5+k6deUz 2k6g== 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=CINhQ0TufHi3amSiVTGnrn1sbNNueagVao77jHCIJos=; b=ibPd0lEsLX7OADMwaOwvrryOzn2PeDKpXP/jCQjQGJgWVFBePvxb1Arh2uaisbxk9b nrIZECDfdsV9OSekWeMhsib2QZbseM4L/ky2UuaVLkjqdHk5NEqzqB61z2MwWgErIDNG Bdavpj8C7AEKTb1csC0y6ZBR234Y443j+Wk7WuIRyo3yZjdSsCZLkE4uwY/g9TrFR/Zt KF3J8SfbbkogVpX543sn1djOxha8G2a68tpqe2TZ14NdbqCsaFntyBgjhfglSVF4K/65 xosLiqxAVfHbuW/vAIOV71k2giFWV3UMFH9xafRbP9gLqShm0KekqIQg+lPGBFYgmXim A/dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W3asntOM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd3-20020a1709069b8300b006fec40443b6si12059556ejc.23.2022.06.14.06.29.44; Tue, 14 Jun 2022 06:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W3asntOM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244942AbiFNMei (ORCPT + 99 others); Tue, 14 Jun 2022 08:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244392AbiFNMe0 (ORCPT ); Tue, 14 Jun 2022 08:34:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ABD9F4616D for ; Tue, 14 Jun 2022 05:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655209863; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CINhQ0TufHi3amSiVTGnrn1sbNNueagVao77jHCIJos=; b=W3asntOM2qXCasOtmIcUv/Y46/mRpfgPiBhSfvL+SLHuBh0/OBgERY9gXkElPI2fyvx6VH 3lg/bFNHMmjyVcpoErAEHGpsRoRQRadGuLoiXHccvJHtp09Y0S/5Md+GlwTEKURHkZL1Hx 2GXUU1ckUco2/r8cvOhkS0ax2sDP6zY= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-601-K4OhpCdxNkGGb0KdB6SrDw-1; Tue, 14 Jun 2022 08:30:59 -0400 X-MC-Unique: K4OhpCdxNkGGb0KdB6SrDw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 3F50F811E81; Tue, 14 Jun 2022 12:30:58 +0000 (UTC) Received: from fedora (unknown [10.22.9.132]) by smtp.corp.redhat.com (Postfix) with SMTP id 0070B2166B26; Tue, 14 Jun 2022 12:30:54 +0000 (UTC) Date: Tue, 14 Jun 2022 09:30:52 -0300 From: Wander Lairson Costa To: Kuppuswamy Sathyanarayanan Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , "Kirill A . Shutemov" , Tony Luck , Andi Kleen , Kai Huang , Isaku Yamahata , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 5/5] x86/tdx: Add Quote generation support Message-ID: References: <20220609025220.2615197-1-sathyanarayanan.kuppuswamy@linux.intel.com> <20220609025220.2615197-6-sathyanarayanan.kuppuswamy@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220609025220.2615197-6-sathyanarayanan.kuppuswamy@linux.intel.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 08, 2022 at 07:52:20PM -0700, Kuppuswamy Sathyanarayanan wrote: [snip] > +} > + > +/* Remove the shared mapping and free the memory */ > +static void deinit_quote_buf(struct quote_buf *buf) > +{ > + if (!buf) > + return; nit: the null check isn't necessary anymore, is it? [snip]