Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1789723pxu; Sun, 6 Dec 2020 07:21:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtXLzCoauMJ2KWwSjTia1C7NqMn9Nxt7TlQKvQCGiW8WhYjCspnMBUFe6uaAkPNEieSLvy X-Received: by 2002:a50:f9cc:: with SMTP id a12mr1865268edq.335.1607268073565; Sun, 06 Dec 2020 07:21:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607268073; cv=none; d=google.com; s=arc-20160816; b=KVE5wD2PgAXr9smbjoGU3W1qOgpp/FOV0oZ/w9PM/T1BC4X4/V4DIDUu+M4me6E2Wo 8orGTaFR2D5y/5qCPTod47kHIqICvQKjZnr7HTThLFCRlxubRUoOjMTsa3LCO1DbHIGF Tf1Kk9HTcGyHSyVBZWpPV2g/dL05RH+jR3kXpgv5pFbfEigEY6KGN+lP4Bo8MbDk67cV IGIvfwpUQe3TQyTws92R6HwODb1RM9h2tRSQpZ7VjAMGdHqchoGkoq/0vPkeOPD+jYU/ yUp2VL03JwF08+CcHEqnFSJ2UprmVhJYTiaRCTZXl1IH8CAyBavPMe4wWFYVEV1uH00n X0Jw== 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 :message-id:date:subject:cc:to:from; bh=zkxFHadxaze5nfZYtQLs9OO4Hz5HtOr7G5FdtnxvfFU=; b=kWibAGdA7IV28TPXafOR0MUdLO4qJeCG5SfjzyYLuSI6X7qM+Ii/h9/05ZF8trtjkK vacTLSm62SFiYVfnd0kKiGF37Zml4OHpoev/aY770fPLEWXs4OpFPEYqbNg2OLqnULsy 8ee8dzxnJZa/9XiW1S6hJ2lAEwKiP5fRykI054oDeNDRI7U15eDGyme1cNTSZYAHHVhy oAemrdPw+BKde5VuTDBlyZIRqqE3sX6Kye4AkOn6OLIPcnYvxpAp2UwFTvltXYbnZWJ7 /BETSL36HUomUWiIOJTsIleLWWIUJAsqEy3d1DvAFe9e6v9MlhIRFUahSnOgV+43fy3t iNFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h17si4879244ejg.46.2020.12.06.07.20.49; Sun, 06 Dec 2020 07:21:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726609AbgLFPPc (ORCPT + 99 others); Sun, 6 Dec 2020 10:15:32 -0500 Received: from smtp13.smtpout.orange.fr ([80.12.242.135]:38223 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726198AbgLFPPc (ORCPT ); Sun, 6 Dec 2020 10:15:32 -0500 Received: from localhost.localdomain ([93.22.38.146]) by mwinf5d72 with ME id 13Df2400H39BigV033Dgka; Sun, 06 Dec 2020 16:13:47 +0100 X-ME-Helo: localhost.localdomain X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 06 Dec 2020 16:13:47 +0100 X-ME-IP: 93.22.38.146 From: Christophe JAILLET To: ioana.ciornei@nxp.com, ruxandra.radulescu@nxp.com, davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH] dpaa2-mac: Add a missing of_node_put after of_device_is_available Date: Sun, 6 Dec 2020 16:13:39 +0100 Message-Id: <20201206151339.44306-1-christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add an 'of_node_put()' call when a tested device node is not available. Fixes:94ae899b2096 ("dpaa2-mac: add PCS support through the Lynx module") Signed-off-by: Christophe JAILLET --- drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c index 90cd243070d7..828c177df03d 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c @@ -269,6 +269,7 @@ static int dpaa2_pcs_create(struct dpaa2_mac *mac, if (!of_device_is_available(node)) { netdev_err(mac->net_dev, "pcs-handle node not available\n"); + of_node_put(node); return -ENODEV; } -- 2.27.0