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

From: Markus Elfring
Date: Fri Apr 05 2019 - 04:50:52 EST


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