Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2868070ybc; Wed, 20 Nov 2019 22:56:20 -0800 (PST) X-Google-Smtp-Source: APXvYqz95r2vEvocqLrih/rngH6Q18uMWqHWfhh7RJfFpUTg8uP1vyvZBDDYSojCH4LQbAWdfKo/ X-Received: by 2002:a17:906:f90d:: with SMTP id lc13mr11573211ejb.154.1574319380418; Wed, 20 Nov 2019 22:56:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574319380; cv=none; d=google.com; s=arc-20160816; b=KbAtqhTcJqmymyn9TrruQCwJBhgkA4rrjKk3RS1OC98jChtx+I8Mf3quHCULJw2tXe StRAbOIkKqN0yv9gO9LWC6LSw2xABHFI0F/WznQjCJ+IrlBYf5Mvfe1Mrpl0RlpOD+z8 iucZVa8gx4jRPLJxH0aGe7RxwZRpQCkQNM2cX28JyjgY3ZdSHP1ah11foFHvdGOBE7KA 2zz80A7FxRhkf52Bzgus1pCb1ukPtsY74C6CeeXCVYBFKK2P5duZqfUKFqgjKzWU4+6Z 6yYXA3o4IAFJPA3peToYd3Bjk2tavzG+qgSVUIYEmHaKyLLxDpFBxIlCjCiNSyUsSQKp hUEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=deKFJNLIJqiTLq0PFe6vEDOQ9RnTgOGMfgxMNcJna14=; b=nskh6Wm33Jx4/QkjWq6IY7qgl3pHeRVYfZBi9ka+99TB4HHKdRmb0GLiiAKf8BIAss yCCw3obIrBLMkf4AmxjurlLIuR20BHSado6+5XF23Ovt9cRteSUWJ9bJRkupEHvWzR+r QnTi1cmdXzV20lReRJ0s7TKGuKfh1w+oou/JoWmyI84CeAc6BUZAmIdk8lQwADxZqBTN 6PN4H9nmzKQhNW+qZmi+yJ1Kv8xMbWXDdPFPu/zR3ZdopMClLuyOKLOxh9hb6vaQej6r HfDflJCdHj5o7s/HxIPrJSajB1A8iO3/Ckf++QbPrRVdkC3vxX5VIYSuQ7Mt1PsbTGtD YsZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b0zyqwOt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13si1167829eja.112.2019.11.20.22.55.55; Wed, 20 Nov 2019 22:56:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=b0zyqwOt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726546AbfKUGye (ORCPT + 99 others); Thu, 21 Nov 2019 01:54:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:52894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725842AbfKUGyd (ORCPT ); Thu, 21 Nov 2019 01:54:33 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 DE4B020898; Thu, 21 Nov 2019 06:54:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574319273; bh=Soi/YIivN4vUu2pouIaLtAtLyPpjLbNbJ0g6HzO+Nok=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b0zyqwOtJ8hRqt9t2BWslIYy2Vlgo4WNci9MIFnDA2MU65JHIP1MXYXYPmxoJWoEu knm3z6XeVys5Gq28V3DPvKq7Oansj1l36GxrmPzcqC4p243LMFEnAHdrt0+7H0qQDj rjK2CcKMHMDFiJT445v+wVR+qlymCJCjmct7Rs1U= Date: Thu, 21 Nov 2019 07:54:31 +0100 From: Greg Kroah-Hartman To: Nobuhiro Iwamatsu Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Ard Biesheuvel , Jens Wiklander , Sasha Levin Subject: Re: [PATCH 4.19 034/422] tee: optee: take DT status property into account Message-ID: <20191121065431.GD340798@kroah.com> References: <20191119051400.261610025@linuxfoundation.org> <20191119051402.211777274@linuxfoundation.org> <20191120021828.hwtwxfby3myn7mnh@toshiba.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191120021828.hwtwxfby3myn7mnh@toshiba.co.jp> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 20, 2019 at 11:18:28AM +0900, Nobuhiro Iwamatsu wrote: > Hi, > > On Tue, Nov 19, 2019 at 06:13:51AM +0100, Greg Kroah-Hartman wrote: > > From: Ard Biesheuvel > > > > [ Upstream commit db878f76b9ff7487da9bb0f686153f81829f1230 ] > > > > DT nodes may have a 'status' property which, if set to anything other > > than 'ok' or 'okay', indicates to the OS that the DT node should be > > treated as if it was not present. So add that missing logic to the > > OP-TEE driver. > > > > Signed-off-by: Ard Biesheuvel > > Signed-off-by: Jens Wiklander > > Signed-off-by: Sasha Levin > > This patch requires the following additional commit: > > commit c7c0d8df0b94a67377555a550b8d66ee2ad2f4ed > Author: Julia Lawall > Date: Sat Feb 23 14:20:36 2019 +0100 > > tee: optee: add missing of_node_put after of_device_is_available > > Add an of_node_put when a tested device node is not available. > > The semantic patch that fixes this problem is as follows > (http://coccinelle.lip6.fr): > > // > @@ > identifier f; > local idexpression e; > expression x; > @@ > > e = f(...); > ... when != of_node_put(e) > when != x = e > when != e = x > when any > if (<+...of_device_is_available(e)...+>) { > ... when != of_node_put(e) > ( > return e; > | > + of_node_put(e); > return ...; > ) > } > // > > Fixes: db878f76b9ff ("tee: optee: take DT status property into account") > Signed-off-by: Julia Lawall > Signed-off-by: Jens Wiklander > > Please apply this commit. And this is also required for 4.14.y. Now queued up, thanks! greg k-h