diff options
author | Arnd Bergmann <arnd@arndb.de> | 2022-07-08 09:13:23 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2022-07-08 09:13:24 +0200 |
commit | a2668c1500e3ae1525525d72d9b86ce57afc70db (patch) | |
tree | dc6b6fb40a158f4a6c5bacaf175587381eb5aadf | |
parent | 8fcdf10295b40ac42f10a642fae61da066a15390 (diff) | |
parent | d1ff2559cef0f6f8d97fba6337b28adb10689e16 (diff) |
Merge tag 'zynq-soc-for-v5.20' of https://github.com/Xilinx/linux-xlnx into arm/soc
ARM: Zynq SoC changes for v5.20
- Fix refcount leak in zynq_get_revision()
* tag 'zynq-soc-for-v5.20' of https://github.com/Xilinx/linux-xlnx:
cpufreq: zynq: Fix refcount leak in zynq_get_revision
Link: https://lore.kernel.org/r/e1d0a721-afa4-93a0-7119-0e4481a0624b@monstr.eu
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arm/mach-zynq/common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-zynq/common.c b/arch/arm/mach-zynq/common.c index e1ca6a5732d2..15e8a321a713 100644 --- a/arch/arm/mach-zynq/common.c +++ b/arch/arm/mach-zynq/common.c @@ -77,6 +77,7 @@ static int __init zynq_get_revision(void) } zynq_devcfg_base = of_iomap(np, 0); + of_node_put(np); if (!zynq_devcfg_base) { pr_err("%s: Unable to map I/O memory\n", __func__); return -1; |