[PATCH] soc: dove: fix OF node leak in dove_init_pmu()

Andrew Lunn andrew at lunn.ch
Fri Nov 27 06:46:42 PST 2026


> @@ -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



More information about the linux-arm-kernel mailing list