Commit a2668c15 authored by Arnd Bergmann's avatar Arnd Bergmann

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.euSigned-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parents 8fcdf102 d1ff2559
...@@ -77,6 +77,7 @@ static int __init zynq_get_revision(void) ...@@ -77,6 +77,7 @@ static int __init zynq_get_revision(void)
} }
zynq_devcfg_base = of_iomap(np, 0); zynq_devcfg_base = of_iomap(np, 0);
of_node_put(np);
if (!zynq_devcfg_base) { if (!zynq_devcfg_base) {
pr_err("%s: Unable to map I/O memory\n", __func__); pr_err("%s: Unable to map I/O memory\n", __func__);
return -1; return -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment