Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4637441iob; Sun, 8 May 2022 20:08:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9+9QNcQA2LE81iaPHdn1sKsLYRBUBqBAH6umnsgp2KFPeoDeMME3yHPz4wnptYB5vkCYr X-Received: by 2002:a17:90b:3b42:b0:1dc:5cdf:5649 with SMTP id ot2-20020a17090b3b4200b001dc5cdf5649mr24166701pjb.239.1652065738211; Sun, 08 May 2022 20:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652065738; cv=none; d=google.com; s=arc-20160816; b=1BS7NDkNXfDxdkPCa6mQlUYfeBF5uHl2/sWwryWLNE9tSVVL9CaNdKr+T2e4hbx2Dn iw9VVE6D/fQSY7L5kQRbKXzcSVHTmpVXSjkwFMve0j5BSp08NZYzhGutI4nURr01OGQs cA1rmQ39VXFEcLOELZMbDU7IHUJSjPYnwwbW+dUxOwkYRyE9CSPx6TJY7g2UFLM5ua4X PgNs/iCTCm4pkCx7S+XwyOkX5oox2neI6u9n56reynSS7SjqOOs0bat1tdEK/xVh0mMv x/H6eLb8OAB4GQLrjgvMUiZc3pgj25uTDZl3kl9MPxttp/AYkvgX4cjKDT+qSkNRg8iC QlcA== 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=2bMWUF7KrFusjuxk0UPtqAaloxm9GyxUn1G7D5oYjds=; b=ehQJCx8jTynA6S+v2DxWVAm8LuIQtPOmAPl83/schVfdoo9AefZR2foyJT0tJUAAxO g9K9zcVjHXAPIi8IZna1OpaRM2XwpcjMVhBNUVI1+4a6GUmVWGhYXDT41IcECuQx9m7Q ascgHIBXKUeJdrPDeDyrfKtPh6xetNaLo+gwIsaWSpjnOnIgqFk7nUybsXINEKDJvbVC TXxJ/UMqdE/EjxRTok2z5nEXcEkMfWq3ncAYFYAwDnU9pVjEpWVZK5x9P1jLrWCttQKD 9N4eA7CvQuRJFgM+OiLYjB+gj4utRutzIs775JCDjITI0MvnnDX/FY5NgodW+PBpO3X2 01KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vIRvtHUz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 6-20020a630006000000b003c6cb42cdc1si1580169pga.864.2022.05.08.20.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:08:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vIRvtHUz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CEB878CD9F; Sun, 8 May 2022 20:08:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357301AbiEDR12 (ORCPT + 99 others); Wed, 4 May 2022 13:27:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355415AbiEDRHf (ORCPT ); Wed, 4 May 2022 13:07:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97EE9517E3; Wed, 4 May 2022 09:54:29 -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 538D8616F8; Wed, 4 May 2022 16:54:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0F97C385AA; Wed, 4 May 2022 16:54:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651683268; bh=0IiNxe8NdBPwEW6lbGtCQxmIXK0QG7FV5Fx/37V/jR4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vIRvtHUzlS8WbXYj7CXBnsP7COCxm0N7ESmba+HMT2yfksEaDZ8WsNhMbNa3hr739 +Rh3oyVbC3arU1yB3Z97dbwxAtZ6a2KMBhiOf/GcCTA4knRqkntojBuwI1mg/Ntodg UuIRgFAlGghfcSLo9cecw9XfnVnMIv/JQTCRJ6+Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yang Yingliang , Jakub Kicinski , Sasha Levin Subject: [PATCH 5.15 118/177] net: fec: add missing of_node_put() in fec_enet_init_stop_mode() Date: Wed, 4 May 2022 18:45:11 +0200 Message-Id: <20220504153103.737095476@linuxfoundation.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220504153053.873100034@linuxfoundation.org> References: <20220504153053.873100034@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=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 [ Upstream commit d2b52ec056d5bddb055c8f21d7489a23548d0838 ] Put device node in error path in fec_enet_init_stop_mode(). Fixes: 8a448bf832af ("net: ethernet: fec: move GPR register offset and bit into DT") Signed-off-by: Yang Yingliang Link: https://lore.kernel.org/r/20220426125231.375688-1-yangyingliang@huawei.com Signed-off-by: Jakub Kicinski Signed-off-by: Sasha Levin --- drivers/net/ethernet/freescale/fec_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c index a3e87e10ee6b..67eb9b671244 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -3726,7 +3726,7 @@ static int fec_enet_init_stop_mode(struct fec_enet_private *fep, ARRAY_SIZE(out_val)); if (ret) { dev_dbg(&fep->pdev->dev, "no stop mode property\n"); - return ret; + goto out; } fep->stop_gpr.gpr = syscon_node_to_regmap(gpr_np); -- 2.35.1