Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6200396iob; Tue, 10 May 2022 12:40:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4dMJGSVoFMIyGuRmyxxmVEudCd2iHg3tW7cn2kNv4SRsh+AGxJU4D1XN0TbTN4MNsyeeu X-Received: by 2002:a65:6c05:0:b0:3c6:e380:9088 with SMTP id y5-20020a656c05000000b003c6e3809088mr5565489pgu.429.1652211629176; Tue, 10 May 2022 12:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652211629; cv=none; d=google.com; s=arc-20160816; b=SiaixEZzGcLzWRA46EQP9JllRBlxk/41f86fQ53EdzCpHXE6ZCeL1vgJ4JqVP3nBLC KhLLAw9+HUZOxVhFnnAk5cjcwSdWFYV7DMmIMM8vV/TVuWT4wuRhBW4OhUgBM4T5chN9 M982PO/ewbKodvHVsC9eyHiRbfP6lAX4XV6fKXPD+FqB1rF9LxtgslEhOGkt0aTsosNA nMk6xKjynTKgbf0r7pwXWAWoQRNWB3cCImP/5r+y5hiCu9o6NRvytT+CQBvQKZN+EK9A p+ekYTMg9J29dQJ7ncskYXx6zyuXuop+LJyf4cuxZF3eNBzo5RBb27B5+5JKYNqnz0uC x5/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7yCPEvUFXLNUT4CVOm+jEi+EiKlh3C1zFdRgsFi6xuw=; b=Tds/jeZM2O5k5Bm15arytml8aeNUXA0d5ux6w2TNBFh6Xh9+8bAd+miGAlPulPG6qd qlONq66ZujAIsu9LYEt2Tu+kP7SmVkPkpWiBW0kat1kMSxc0fbetHJhzXTaEfg29Fe/z uj94N1w6+cKjhmfCjdTfniDBaIKpO60ZgMVzJPiW2BqiuplusmCDexxk0SAe+AcU9aQW Df+VgPfIW+exfY7AEB+KgpYuojKOVBRxp8Oqd42UFq4axrqdI3tDWyi7r7906l5XGXcW 5F3p83fE1Z5cvbSvcdmuai4eKP4T5bDSDb2vewcXp+4c4btCf5R749sOwPzEeUbytdrc otIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QfZiei5J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y16-20020a170902b49000b0015f0a785c7esi3856055plr.341.2022.05.10.12.40.13; Tue, 10 May 2022 12:40:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QfZiei5J; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245757AbiEJNsJ (ORCPT + 99 others); Tue, 10 May 2022 09:48:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243887AbiEJNcT (ORCPT ); Tue, 10 May 2022 09:32:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B3D753A76; Tue, 10 May 2022 06:23:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2450B60C1C; Tue, 10 May 2022 13:23:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 325EDC385C2; Tue, 10 May 2022 13:23:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652188987; bh=2JXNi0h472IJAvsy7Wy/uC8BoxOskO922ur9hp3xCw8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QfZiei5JK5T44iZdIub3Me3G5RTAmbN9YRTYajfFs9I0g1nQ9ElOc50f3LBMhOYIz eYkLfi0df6owdJC65Yg4Qzrs2QG+qa6bQFsUSD9FbcBBdOzeQNtd7Rw+hF3X2eAjRN NN3KJWxHuo7X7RNQ5DvXiHjl0ye8jrt7rJXsQfdI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Yang Yingliang , Jakub Kicinski Subject: [PATCH 5.4 27/52] net: stmmac: dwmac-sun8i: add missing of_node_put() in sun8i_dwmac_register_mdio_mux() Date: Tue, 10 May 2022 15:07:56 +0200 Message-Id: <20220510130730.647034264@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130729.852544477@linuxfoundation.org> References: <20220510130729.852544477@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yang Yingliang commit 1a15267b7be77e0792cf0c7b36ca65c8eb2df0d8 upstream. The node pointer returned by of_get_child_by_name() with refcount incremented, so add of_node_put() after using it. Fixes: 634db83b8265 ("net: stmmac: dwmac-sun8i: Handle integrated/external MDIOs") Reported-by: Hulk Robot Signed-off-by: Yang Yingliang Link: https://lore.kernel.org/r/20220428095716.540452-1-yangyingliang@huawei.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c @@ -879,6 +879,7 @@ static int sun8i_dwmac_register_mdio_mux ret = mdio_mux_init(priv->device, mdio_mux, mdio_mux_syscon_switch_fn, &gmac->mux_handle, priv, priv->mii); + of_node_put(mdio_mux); return ret; }