[PATCH v3] cpufreq/pasemi: fix an use-after-free in pas_cpufreq_cpu_init()

Markus Elfring Markus.Elfring at web.de
Tue Jul 9 03:45:19 AEST 2019

> @@ -204,6 +205,7 @@  static int pas_cpufreq_cpu_init(struct cpufreq_policy *policy)

>  out_unmap_sdcasr:

>  	iounmap(sdcasr_mapbase);

>  out:

> +	of_node_put(cpu);

I would find the usage of a jump label like “put_node” nicer at such
a source code place.


More information about the Linuxppc-dev mailing list