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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS autolearn=no 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 00EAAC432C3 for ; Wed, 20 Nov 2019 02:18:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8EE822429 for ; Wed, 20 Nov 2019 02:18:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727363AbfKTCSm (ORCPT ); Tue, 19 Nov 2019 21:18:42 -0500 Received: from mo-csw1514.securemx.jp ([210.130.202.153]:42070 "EHLO mo-csw.securemx.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727082AbfKTCSm (ORCPT ); Tue, 19 Nov 2019 21:18:42 -0500 Received: by mo-csw.securemx.jp (mx-mo-csw1514) id xAK2IWma031090; Wed, 20 Nov 2019 11:18:32 +0900 X-Iguazu-Qid: 34tri0Mt082SogzPLH X-Iguazu-QSIG: v=2; s=0; t=1574216312; q=34tri0Mt082SogzPLH; m=luvDoeALb1HlBxIQtq0OD8ulvd3UP5QOufXziv5U2MI= Received: from imx2.toshiba.co.jp (imx2.toshiba.co.jp [106.186.93.51]) by relay.securemx.jp (mx-mr1511) id xAK2IVhk028623; Wed, 20 Nov 2019 11:18:31 +0900 Received: from enc01.localdomain ([106.186.93.100]) by imx2.toshiba.co.jp with ESMTP id xAK2IVXi029867; Wed, 20 Nov 2019 11:18:31 +0900 (JST) Received: from hop001.toshiba.co.jp ([133.199.164.63]) by enc01.localdomain with ESMTP id xAK2IVag029743; Wed, 20 Nov 2019 11:18:31 +0900 Date: Wed, 20 Nov 2019 11:18:28 +0900 From: Nobuhiro Iwamatsu To: Greg Kroah-Hartman 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 X-TSB-HOP: ON Message-ID: <20191120021828.hwtwxfby3myn7mnh@toshiba.co.jp> References: <20191119051400.261610025@linuxfoundation.org> <20191119051402.211777274@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191119051402.211777274@linuxfoundation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Best regards, Nobuhiro