[1/5] powerpc/sparse: fix possible object reference leak

Markus Elfring Markus.Elfring at web.de
Fri Apr 5 19:50:33 AEDT 2019


> @@ -131,7 +131,7 @@  static int drc_index_to_cpu(u32 drc_index)
>
>  			of_read_drc_info_cell(&info, &value, &drc);
>  			if (strncmp(drc.drc_type, "CPU", 3))
> -				goto err;
> +				goto err_of_node_put;
>
>  			if (drc_index > drc.last_drc_index) {

Can the jump label “put_node” be nicer here?

Regards,
Markus


More information about the Linuxppc-dev mailing list