From patchwork Tue May 11 20:46:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 12252033 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=-20.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 5A6F2C433ED for ; Tue, 11 May 2021 20:46:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 4BD2E60FE3 for ; Tue, 11 May 2021 20:46:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4BD2E60FE3 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 95D576B0036; Tue, 11 May 2021 16:46:31 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 90D906B006C; Tue, 11 May 2021 16:46:31 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7AE0A6B006E; Tue, 11 May 2021 16:46:31 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0042.hostedemail.com [216.40.44.42]) by kanga.kvack.org (Postfix) with ESMTP id 5A1936B0036 for ; Tue, 11 May 2021 16:46:31 -0400 (EDT) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 0DEA787E1 for ; Tue, 11 May 2021 20:46:31 +0000 (UTC) X-FDA: 78130133382.10.5805C81 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by imf14.hostedemail.com (Postfix) with ESMTP id BC6E6C000C77 for ; Tue, 11 May 2021 20:46:05 +0000 (UTC) IronPort-HdrOrdr: A9a23:uYLklK34YjRGGJPRg4wNbQqjBLkkLtp133Aq2lEZdPU1SL37qynApp8mPHPP4gr5O0tQ+uxoWpPgfZq0z/cc3WB7B9mftWfd1FdAYLsD0aLShwylISH4++JHvJ0MT4F1ArTLYmRHsQ== X-IronPort-AV: E=Sophos;i="5.82,291,1613430000"; d="scan'208";a="507819115" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 May 2021 22:46:07 +0200 Date: Tue, 11 May 2021 22:46:07 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Julian Braha cc: Andrew Morton , Linux Memory Management List , linux-kernel@vger.kernel.org, kbuild-all@lists.01.org Subject: [PATCH] lib: fix for_each_child.cocci warnings Message-ID: User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Authentication-Results: imf14.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf14.hostedemail.com: domain of julia.lawall@inria.fr designates 192.134.164.83 as permitted sender) smtp.mailfrom=julia.lawall@inria.fr X-Rspamd-Server: rspam01 X-Rspamd-Queue-Id: BC6E6C000C77 X-Stat-Signature: o57fgfej5suqs7h6m7q5fwxhiwqm3u8d Received-SPF: none (inria.fr>: No applicable sender policy available) receiver=imf14; identity=mailfrom; envelope-from=""; helo=mail2-relais-roc.national.inria.fr; client-ip=192.134.164.83 X-HE-DKIM-Result: none/none X-HE-Tag: 1620765965-416897 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: kernel test robot For_each_available_child_of_node should have of_node_put() before return around line 1121. Generated by: scripts/coccinelle/iterators/for_each_child.cocci Fixes: 7d37cb2c912d ("lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS") CC: Julian Braha Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall Acked-by: Linus Walleij --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 1140ab592e2ebf8153d2b322604031a8868ce7a5 commit: 7d37cb2c912dc5c25ffac784a4f9b98c06c6bd08 lib: fix kconfig dependency on ARCH_WANT_FRAME_POINTERS :::::: branch date: 15 hours ago :::::: commit date: 5 weeks ago mcde_dsi.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/gpu/drm/mcde/mcde_dsi.c +++ b/drivers/gpu/drm/mcde/mcde_dsi.c @@ -1118,6 +1118,7 @@ static int mcde_dsi_bind(struct device * bridge = of_drm_find_bridge(child); if (!bridge) { dev_err(dev, "failed to find bridge\n"); + of_node_put(child); return -EINVAL; } }