Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1522853pxk; Sun, 13 Sep 2020 06:04:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0JhZi9+5FwwEbSoqXoaLr9mPVuwKNPx9OPxauCW94g3ndnOFA+toU5Tn9+MPEP2ELZ/zA X-Received: by 2002:aa7:d043:: with SMTP id n3mr12094564edo.243.1600002270942; Sun, 13 Sep 2020 06:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600002270; cv=none; d=google.com; s=arc-20160816; b=LA3MD070oogG6/vUQfWm6qUfUTifkeiNIDvJnVeOZnQbiXp5LZkkXg0dkXK9wnsJ1R bFNh6s7BgAuRp/a8/7yVAnVleBuSFgLy2iXha+dqf4KAVHxXMkFDII4GR+ftyjrr1vt7 D4jLIvbglADLjHymj0BgWl9NHLQeTMyz4iUUKZVG7l+fbkPLvjDM9+lCt4bchriBF3BL c8rTfWYhGNUFaTdcNUr1foXEgGGIp6cmmm3Nnec+rS2kzezo6RFxzpkaLppiPNS4dtib v31eH2OScicTH5QuD9O0/tMRy7ldT8edPoKhn3mcTZwyM6rSE0sN7eg6BAK2esCQdycO 2AoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=pPCmjlTrAmfqJleeRYsacvC5WOPQ/sV/9CQBQ+8u+kU=; b=i4rbap7uXjGOHsTMcrpjyBRxMDCRRXRnA6SxVBqqlKmD9+6oWCT7GZ4mPZTDUsGUS4 Byv3mn2BhdkNTWLLsL0XkmsXLJ+vrJDzbNCpE6R/KT5OFjZ7EaGKGHR91FXZvyjizHix CaU0o/p3B9bEOQ/4NbXm/MMKcZY+NSHfxPqhZCkQjMrCClRYgC26NXpGdp4nD7ViDJd2 b1I163TwYIceKXXLE92EfKbCjzXZL3mMLCqwtAbw/cSRxqJjGYyLJTSS7AQJbm0dFFxP H3XQSeOXQ9WR5JvBh5NVbtiWh9NuHsXD5GGPJLih1GL3jW4jEAUTLTQMMjTBFxGonCX1 N7nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=U6zE07o7; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si3652509edq.603.2020.09.13.06.04.07; Sun, 13 Sep 2020 06:04:30 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=U6zE07o7; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725938AbgIMNBe (ORCPT + 99 others); Sun, 13 Sep 2020 09:01:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725919AbgIMNB3 (ORCPT ); Sun, 13 Sep 2020 09:01:29 -0400 Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66C0CC061573; Sun, 13 Sep 2020 06:01:28 -0700 (PDT) Received: by mail-lj1-x22a.google.com with SMTP id b19so16223358lji.11; Sun, 13 Sep 2020 06:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=pPCmjlTrAmfqJleeRYsacvC5WOPQ/sV/9CQBQ+8u+kU=; b=U6zE07o780EAOLjlGW1oq7Cy8bRqvryTPnit0wgmyG3Yv+v6Ui5vGcIN9cqNo2tUa1 SY3RtJFeefEVvZmhhdzeSvDeD/QMSNGgHh7fiLc9IT2wgBTi3N6c4gxqKHVAtaoz1hNH xcNQuYc56ibDCJqP3r8Z4hNsPrIeriDyrMdcoAtjCQiSBzBpGijJLzLvmgj5haHnYwj6 HyRZTUnfWvYR6KqM2BMGATdGK5UBDb8xChfBT7PhITekQzlnV4wSuFjJzXUmsBt+jh6a OmW5XaT8vp8v0nlf/qEBLN3xCr4wNqx/JusRkwvihD4Ir9aqEmZaFYFXv3WHiMgA4gDi /kCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=pPCmjlTrAmfqJleeRYsacvC5WOPQ/sV/9CQBQ+8u+kU=; b=e4Ur6HdYglFX+A41TNA/SyvzgSC3S+etE0P/MafLtfSefYnSCyf9VfRY9YL3VCRxJF 3vXp6jZfS7AknTYTBQoqgw1QWZoOw/OPVxURS7XJSMhiu/hjQCsM3OT5W47qh0vTdOrY c2AQauXinbClP5yYDV93qDmlULuU5U8CjjEv9scmzV5E6tsBuykBNlXgAVQYx88+PuSO gQDve+sn8OdLkmD4XTnDj+A1kfOwb8zdb/nhX6WkiC7VqC1cTe57EmwXVlVPeqN5Udng t+zD9VePT6hw9AqiwZmipeWRl3nHEMkhbiIZzkMLXDE4hzs5/aFdgpo5AQigfF/h0XXA UV8w== X-Gm-Message-State: AOAM5309ty1zPKAspZLIZ/LxluLq1B5ECJdVdXEUoUdta4NksL7xuV6u U4qlQURGf3SfqvQsoG+/tQI52TIc5j3K5eKQ847TiMBBPwU= X-Received: by 2002:a2e:a16c:: with SMTP id u12mr3468462ljl.266.1600002081028; Sun, 13 Sep 2020 06:01:21 -0700 (PDT) MIME-Version: 1.0 References: <641dfe3b-1de8-97ea-eac7-89d81846eab3@web.de> In-Reply-To: <641dfe3b-1de8-97ea-eac7-89d81846eab3@web.de> From: Souptick Joarder Date: Sun, 13 Sep 2020 18:31:08 +0530 Message-ID: Subject: Re: [PATCH] tee/tee_shm.c: Fix error handling path To: Markus Elfring Cc: op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Jens Wiklander , John Hubbard Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 13, 2020 at 2:00 PM Markus Elfring wrot= e: > > > When shm->num_pages <=3D 0, we should avoid calling > > release_registered_pages() in error handling path. > > * Would an imperative wording become helpful for the change description? > > * I suggest to add the tag =E2=80=9CFixes=E2=80=9D to the commit message. Sure. Will address both in v2. > > Regards, > Markus