Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6201692iob; Tue, 10 May 2022 12:42:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEKK7JfyTz7Efk2l4qv8G4/DzVrWqERAGGEWK1bYhmqo+8jnJ5a8dy+r0n5hZi1g2ukwRn X-Received: by 2002:a05:6870:fba4:b0:ed:509b:8a33 with SMTP id kv36-20020a056870fba400b000ed509b8a33mr978340oab.123.1652211751839; Tue, 10 May 2022 12:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652211751; cv=none; d=google.com; s=arc-20160816; b=LZ2zjK66JerUseapYKXRMlFFseWxYsgIzj6tRTPeeGmBS7HAif46GIeEgaYCRmNoIh 5NA+mT76BWbROEUqOYD4vI/KM+HeORitJCYtoNjSfrFo31ELY5zg7ymlQgLGnr+iTWah Gw4f8wq7tnvJMxz1K4AcpLhlwQqKTWWDanHsic04HHnr6CLfcoFi/CRg/O+bCygPOLSu Adk7Vb7hz4cKd7pfnm6tVxSDY0lE1i1nc1cw2bfjcaYB8UXFv5BA4AsfPEZs2iEkFBTP 1d8v3AZqn2Q+ssmieslCagdtI9cwpdhv5LBZsC1vqT+RHjaFlUoyPuK0ogwag0Z103ny M7PQ== 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=A+pAFW2/P8S5UROnd8/ws7JnrDKGmm3etgjjhKPKIGQ=; b=h/NDLAaIYXJmgzMiueNfp0pxidLw/UFUFvhcCMgUSwinz8oQeT/qVEj+LWJ6/NPXDQ LgP7SfTnZGx9PdssL+jx83H9BHnq+8OZie8krilzjuDyoQzVPvSzQE6X8bGcJdzCAoFD B1Hc4v+mXwuRr+ZorO5VWOzpDkravSts0jKKsqLZPoqHi8QgtKhPuwOd94o0G4F+KHeI BgFSVtn1WPCHPGMruJMoF/yqvJ/9NtORqVue31YtGjoIp24VIKPLmYxFw6yfvQfFKDQI Fc2nyXe8murEtqcxPNtxSttY+8GeiMjgGVVNyulXmgXzp6UbSpDmA4q+aWeA3kwEWJRu aOZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NaaHM0Pl; 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 59-20020a9d0141000000b00606aa4bfc39si46460otu.31.2022.05.10.12.42.17; Tue, 10 May 2022 12:42:31 -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=NaaHM0Pl; 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 S244854AbiEJN4g (ORCPT + 99 others); Tue, 10 May 2022 09:56:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244983AbiEJNiS (ORCPT ); Tue, 10 May 2022 09:38:18 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 136F48022F; Tue, 10 May 2022 06:26:50 -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 376FC617F5; Tue, 10 May 2022 13:26:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44B6EC385C2; Tue, 10 May 2022 13:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1652189208; bh=sepjU7tRU13o/CeRhHjVMN4T6eotrZo2Y0GY3FV6c/Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NaaHM0Pln90CFFWdOhb3e8Qc2qaj60GnfnD+Ni3TOKjLuADf7UV1XhfXXpJ4oSzoE tF5tJn3hEMWTHjMK3+bGYZmZFXMyHblHoLJCga1OuyVW2uuKdE+ftN+4wIUjexWGSw rtPexCJOtRDS9qvq0wVZCKGVMoRCqzzYJPz5N39M= 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.10 47/70] net: stmmac: dwmac-sun8i: add missing of_node_put() in sun8i_dwmac_register_mdio_mux() Date: Tue, 10 May 2022 15:08:06 +0200 Message-Id: <20220510130734.239367180@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220510130732.861729621@linuxfoundation.org> References: <20220510130732.861729621@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 @@ -895,6 +895,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; }