Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp293075img; Wed, 27 Feb 2019 22:40:04 -0800 (PST) X-Google-Smtp-Source: AHgI3IbR6etS2DOLiSaRuLPdVjle/u8+gzuttGaFrrB8qOxmioTeb9+KO19cv5Euv+xe21ekU4st X-Received: by 2002:a62:e214:: with SMTP id a20mr5722225pfi.192.1551336003978; Wed, 27 Feb 2019 22:40:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551336003; cv=none; d=google.com; s=arc-20160816; b=tB8TrNFonjfFVPu8Y/8NBWt9Fr2XXBrYZhGsiD8pqtrbiTUNvMIiK+/ZZGJ4VSmPw6 EVwO9oRCHUDZtKeUT4ZX06S4Jy5T8C1N40RTkVs8Zz4bbatcXtWxgq8K2WaFpvUiQGtW AOme2h1BdX15d/TKjrrXpks4lOU5fLURiPAaJkWJKL8OHtPhycypiVCCjlB7jo081HAv b8kKoO8RAu9RMungt1sUg8sYm8nH61Pdcoz9fEyS3o8esGaqlpIm+ahvffwiVBLFU5/B /4RPXkEEzPd7Ck1bx5dw0PrtCqoq2HBP+1l/3j83NUcBSyJ+XjPH+zhKXZluwPFJRdMN Kohw== 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; bh=z/YyO6dQeIGq58HiCuG0N//CZ944KnRzTzJJlpIh5U4=; b=OjY+mpUvCwMGhVTSmmniRFNFozhM0wymlRQT705o0KO/Ogg6Zw2yj4NBmiOfdlS9HU FMX3Arhp6T7jvUvscnrCpSFmy+eXAA3CZFQp3drZvluisoIGwNPcTl/NRonZkeVLeraU c+BNrXoEHVWjIae3WPi8oQKCAXKO5xaOTR0Gh6FuLGi93GQwybJ8Yjk75iycvS7HGwnD FWB6o9i2RxQfDvm0hPo7mVAeuYp+pcIKxY6qOZPaJVU3iqsLsOF0tC6EWQxtbKdsFnmG iXD4+t1UkI5KLA/UiCWYiBMcNinYUwxdUb//1TdhK4IQfNdNH4NVJ865x+l5hNbOIVAZ yoaA== ARC-Authentication-Results: i=1; mx.google.com; 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 b9si18229334plb.350.2019.02.27.22.39.45; Wed, 27 Feb 2019 22:40:03 -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; 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 S1730950AbfB1GjU (ORCPT + 99 others); Thu, 28 Feb 2019 01:39:20 -0500 Received: from orcrist.hmeau.com ([104.223.48.154]:40128 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfB1GjU (ORCPT ); Thu, 28 Feb 2019 01:39:20 -0500 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1gzFLf-00062J-Hg; Thu, 28 Feb 2019 14:39:15 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1gzFLa-0001xQ-CZ; Thu, 28 Feb 2019 14:39:10 +0800 Date: Thu, 28 Feb 2019 14:39:10 +0800 From: Herbert Xu To: Julia Lawall Cc: kernel-janitors@vger.kernel.org, "David S. Miller" , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 08/12] crypto: add missing of_node_put after of_device_is_available Message-ID: <20190228063910.yntbq4s7mdinp2ao@gondor.apana.org.au> References: <1550928043-14889-1-git-send-email-Julia.Lawall@lip6.fr> <1550928043-14889-9-git-send-email-Julia.Lawall@lip6.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1550928043-14889-9-git-send-email-Julia.Lawall@lip6.fr> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 23, 2019 at 02:20:39PM +0100, Julia Lawall wrote: > 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: 5343e674f32fb ("crypto4xx: integrate ppc4xx-rng into crypto4xx") > Signed-off-by: Julia Lawall > > --- > drivers/crypto/amcc/crypto4xx_trng.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt