Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1252753imw; Tue, 5 Jul 2022 06:28:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ugUQWO2d8gbdQF5wgzSpELmB1wIZe9Pc9lAe7pX6Hcq9Xa3mstmqF9Lio6ajzNul4ULmxX X-Received: by 2002:a17:906:a0cf:b0:726:cbdd:466b with SMTP id bh15-20020a170906a0cf00b00726cbdd466bmr33128788ejb.410.1657027711352; Tue, 05 Jul 2022 06:28:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657027711; cv=none; d=google.com; s=arc-20160816; b=uLbFD+SNQNHnbBS5euo3H6p/1CxNJvirMBPsGL9m1X1N6c5w9nPHt3mNu670jFHH4e 68pfcMnHtVluZdNP58sW+7CSt5iA9morFJqz6MAEZWAkqrJJb44RUM/UYixTbpIKfYXq xHSKoLG7sX873XjxmkpWIf4X5r6BfXst//JHw9ZFTWYwDWwMfwbdQ3tXxgXRUbx22y5O WY/yS44IJjA2R/fLQYcKeOdwdsrWqUDZQX1JGuumJ27BNwUm1XVamNItdBdefFqCgzv4 z/SKPJrwGXHcg1+d3QRe8sz9Ejc+lx5q3GgFNY9UEW4LT9P1mpZxskw7caYF/C8qKXKC Q1bA== 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=RfLzf9l4w+8IgPfecVDC5H+oSKSzifCwSS65qybi7KE=; b=GTXL1MbTQVZWQamIufGuST4dls+dol7DXeZFGjKO2UREkEUEt5do1Us6AII9WpfhhR f3LNRviAlx480IWD1z/KJ8SAmPxff0T+ToIIyfeIN3rNuoDxPlxhT4I3MdJzc/EKUouZ MHkNfP/w6mkkFxQg6/2p7XHhsUb23gxqzm3PvNgf7FeTZMnLcUKrzwL/tBL35BYVFBaa JP2KyKCL0O7hsZprUTLrjJh6Z1OJigTv0Koe2Dl3VOoxy6X1OkVTZl4NUjNdIKW9o/4b R0ACqpOXXz2LBuKf48JnAcSRZ8mGnfcajIRVlIxoUtXs+yGkioeSL8BMGgq9bkHUD8xE QRlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JLn6Adl6; 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 g8-20020a170906868800b007262d20ea70si18699421ejx.85.2022.07.05.06.28.06; Tue, 05 Jul 2022 06:28: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=JLn6Adl6; 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 S238020AbiGEM06 (ORCPT + 99 others); Tue, 5 Jul 2022 08:26:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236977AbiGEMS1 (ORCPT ); Tue, 5 Jul 2022 08:18:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B14319C32; Tue, 5 Jul 2022 05:13:48 -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 ams.source.kernel.org (Postfix) with ESMTPS id 3A820B817DA; Tue, 5 Jul 2022 12:13:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84C0FC341CB; Tue, 5 Jul 2022 12:13:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1657023225; bh=VXNZnHRcm5Fh6+9sf6g8wx9wGuj2YCXXfVd+GM/Akmw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JLn6Adl6J16WE3r23+yg8JtUZXG14BIMr13K+J8r5bojoDb65GWfY42lwX7tWtGiX BL6BSczpR1AQWPkbS5qlLeafSPmIZ6qsE0cYZH4vJ6Pwun2gz78q1E8wEjY2NszdC4 TLLSUXZT/QFUYK0bJ+IkCIjv3Pf6WgpLrm/zA5hQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liang He , Jakub Kicinski Subject: [PATCH 5.15 41/98] net/dsa/hirschmann: Add missing of_node_get() in hellcreek_led_setup() Date: Tue, 5 Jul 2022 13:57:59 +0200 Message-Id: <20220705115618.755108434@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220705115617.568350164@linuxfoundation.org> References: <20220705115617.568350164@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.8 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 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: Liang He commit 16d584d2fc8f4ea36203af45a76becd7093586f1 upstream. of_find_node_by_name() will decrease the refcount of its first arg and we need a of_node_get() to keep refcount balance. Fixes: 7d9ee2e8ff15 ("net: dsa: hellcreek: Add PTP status LEDs") Signed-off-by: Liang He Link: https://lore.kernel.org/r/20220622040621.4094304-1-windhl@126.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/dsa/hirschmann/hellcreek_ptp.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/net/dsa/hirschmann/hellcreek_ptp.c +++ b/drivers/net/dsa/hirschmann/hellcreek_ptp.c @@ -300,6 +300,7 @@ static int hellcreek_led_setup(struct he const char *label, *state; int ret = -EINVAL; + of_node_get(hellcreek->dev->of_node); leds = of_find_node_by_name(hellcreek->dev->of_node, "leds"); if (!leds) { dev_err(hellcreek->dev, "No LEDs specified in device tree!\n");