Message ID | 20250109001638.70033-1-joe@pf.is.s.u-tokyo.ac.jp |
---|---|
State | Superseded |
Headers | show
Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CBCE623 for <linux-usb@vger.kernel.org>; Thu, 9 Jan 2025 00:16:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736381815; cv=none; b=qIp4+DCW+esvphTBqJDkJ+SEIqwQA171ssjLGq2sGyim5emxJJdZQYJB+ipVoV1PMFrbGg/gAoPW6DaEh2ADmxUnfU71egyWQ9RUP2bC8s8D2tGzAyzCe2QSnmiN6Sq7gdHMNwjCkL8PBEPgpR8mR+5vJwU0BcPsxl4Ivl4adCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736381815; c=relaxed/simple; bh=l8h45rmrtu5TvOosJ+jBSKrsJDAFrXBcjCm8awQi+3Y=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=fMaoYaQSMIl1fjEOkFwiiaZh0DWYXZRloTYca9fkXDH61+IZhwZJpcjnKjj3z1nNqE/9dZKhMmrQq275IW87WOePdD8fu3cSmonP6P7YsfBgNd23xasv3hsuhPo1n49KPMkOWctlv0tkzATHutl1/qkxvjxvT7pjBTd23n7662E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=pf.is.s.u-tokyo.ac.jp; spf=none smtp.mailfrom=pf.is.s.u-tokyo.ac.jp; dkim=pass (2048-bit key) header.d=pf-is-s-u-tokyo-ac-jp.20230601.gappssmtp.com header.i=@pf-is-s-u-tokyo-ac-jp.20230601.gappssmtp.com header.b=0QVZAGxA; arc=none smtp.client-ip=209.85.216.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=pf.is.s.u-tokyo.ac.jp Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=pf.is.s.u-tokyo.ac.jp Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pf-is-s-u-tokyo-ac-jp.20230601.gappssmtp.com header.i=@pf-is-s-u-tokyo-ac-jp.20230601.gappssmtp.com header.b="0QVZAGxA" Received: by mail-pj1-f48.google.com with SMTP id 98e67ed59e1d1-2f4448bf96fso508952a91.0 for <linux-usb@vger.kernel.org>; Wed, 08 Jan 2025 16:16:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pf-is-s-u-tokyo-ac-jp.20230601.gappssmtp.com; s=20230601; t=1736381812; x=1736986612; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qwpegug0/ePQOD528Wsj7E18rEd/oQ+Z8n4jyxehuHw=; b=0QVZAGxAdWY9AfADKMWoRLFBhP/PKFXSaWZtl0NnhqqA0WQAAox7jFliilee2wbWPW PUVdFsbqhsJNXASiDmjW85FEGFDQ1ktcFiW5VitQo+6i0PQFs0Z71yld67e4F77XA/qt NXkOFnNOQ+Tk+RgnysEf1p1cuLJo8V1jOwNZwOng297IM0+yicSamvGXgufzAYTj0wro +WfmGXUVHy9HHDHgJMUg9qGJ1aDv8ikBogjb/CP5F1tTzPpP1sF1K8udRdWGJz5gfzjW 9ftqq03ybGWffciUnFQpHAAc8Y0U2KPxJzj2v7dSBlqqj9eh6rVhVUmLHpou/nt3oNRo iaHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736381812; x=1736986612; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qwpegug0/ePQOD528Wsj7E18rEd/oQ+Z8n4jyxehuHw=; b=WVPAHBxg0pRZu0fkJ4qr3LfUe3WrzzUxc1Ks/dZQRqOXLG3weZtnJBc3oWPWvqXZuP 5Az+d7rWPY6Gm2pjcoESr66K4CWzrlfnk1/OJCXrTcYeE95YqlZjmbSChBQIEWAajT8f 2W5XVSO63nNF2pGHrVCQBakRulAGfJJq9pphzHtXjERMh07cLTOzPS+7D3LxKAQSriM/ C+8t/FaLUI4nfMPlkjN5/Nq6Cqx9fpliwr6MPUQ5ON9sQdtfS8cnFxfXti2EyZ5TYrwT Bn3jV8C/pHpvBUNxa+Zihh17eX2PiuoJWhgghItTxNTM4pgGu2C76MQFtRwCLH1FZx9+ DPDA== X-Gm-Message-State: AOJu0Yxt636Ew3uB0KiOx87trpHGX8LfiUXTjJGv7sK0C1LnvCnaPL9W mYAUkYq6oh/oI2KuEV8KDIbjw3aGmFS1xIvFgmnXbB1ycH/mkAS4n3mdHGhhlMjaoAy71cwRVQW + X-Gm-Gg: ASbGncs6izBxeeRZRRIdjQwclFgvpwj6kOOluGIz9PeqCNR+rZLO3zl1EtnAQVe4Xwt DI3jArQgP2hUHIt5O7keV0MPwp+qLFVuJ0LIVOymTsp3TckNWP4Z2eJ3MgM2t/hCs9wSdA3Ltzm sgDS3hSkgZyWBgvGgG30Xtdc+ZP1KzxydUdcjeMamsinMUxLHbFf7OFBOfoSd5iYLqGuyWjBcGY TZpd4xPRjbFPAqTNvfJEfSAebW2QcBetwo6rPJkPf2776HlupYhOPWFECHsMGmBfXE3NCnSxqvq E/KydmhzpSnXvhhHjPwttN+OWJ56Bic0MGtYh/6L4ss= X-Google-Smtp-Source: AGHT+IGm+c4+1Rj8kwJa+sIZHZv9T8WSe92h8qrUfrK/Fnn/yEU9dRXJxodONZB6tsn6FYu1qYDM0Q== X-Received: by 2002:a17:90b:2e0b:b0:2ee:7698:e565 with SMTP id 98e67ed59e1d1-2f548e9a4bemr7789748a91.8.1736381812500; Wed, 08 Jan 2025 16:16:52 -0800 (PST) Received: from localhost.localdomain (133-32-227-190.east.xps.vectant.ne.jp. [133.32.227.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2f54a2891e7sm2419859a91.21.2025.01.08.16.16.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2025 16:16:52 -0800 (PST) From: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> To: Thinh.Nguyen@synopsys.com, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp>, stable@vger.kernel.org Subject: [PATCH v2] usb: dwc3-am62: Fix an OF node leak in phy_syscon_pll_refclk() Date: Thu, 9 Jan 2025 09:16:38 +0900 Message-Id: <20250109001638.70033-1-joe@pf.is.s.u-tokyo.ac.jp> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: <linux-usb.vger.kernel.org> List-Subscribe: <mailto:linux-usb+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-usb+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit |
Series |
[v2] usb: dwc3-am62: Fix an OF node leak in phy_syscon_pll_refclk()
|
expand
|
diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c index 5e3d1741701f..0a33ed958ebb 100644 --- a/drivers/usb/dwc3/dwc3-am62.c +++ b/drivers/usb/dwc3/dwc3-am62.c @@ -166,6 +166,7 @@ static int phy_syscon_pll_refclk(struct dwc3_am62 *am62) if (ret) return ret; + of_node_put(args.np); am62->offset = args.args[0]; /* Core voltage. PHY_CORE_VOLTAGE bit Recommended to be 0 always */
phy_syscon_pll_refclk() leaks an OF node obtained by of_parse_phandle_with_fixed_args(), thus add an of_node_put() call. Cc: stable@vger.kernel.org Fixes: e8784c0aec03 ("drivers: usb: dwc3: Add AM62 USB wrapper driver") Signed-off-by: Joe Hattori <joe@pf.is.s.u-tokyo.ac.jp> --- Changes in v2: - Add the stable tag. --- drivers/usb/dwc3/dwc3-am62.c | 1 + 1 file changed, 1 insertion(+)