Re: [PATCH] soc: dove: fix OF node leak in dove_init_pmu()
From: Andrew Lunn
Date: Fri Nov 27 2026 - 09:46:54 EST
> @@ -451,5 +454,7 @@
> pr_err("dove_init_pmu_irq() failed: %d\n", ret);
> }
>
> - return 0;
> -}
> + of_node_put(domains_node);
> +
> + return 0;
> +}
The logic of the change looks O.K. But this hunk looks odd. I would
expect it to be:
+
+ of_node_put(domains_node);
+
return 0;
}
i.e. insert the put. Why did it replace the return 0;. Is there a
space/tab issue here?
Andrew