Re: [PATCH] iio: adc: gyroadc: fix leak of device node iterator

2020-09-26 Thread Jonathan Cameron
On Sat, 26 Sep 2020 12:45:15 +0200 Tobias Jordan wrote: > Add missing of_node_put calls for the error paths of the > for_each_child_of_node loop in rcar_gyroadc_parse_subdevs. > > Thought about adding an "goto err_of_node_put" instead, but as the error > paths are quite divergent, I'm not sure i

[PATCH] iio: adc: gyroadc: fix leak of device node iterator

2020-09-26 Thread Tobias Jordan
Add missing of_node_put calls for the error paths of the for_each_child_of_node loop in rcar_gyroadc_parse_subdevs. Thought about adding an "goto err_of_node_put" instead, but as the error paths are quite divergent, I'm not sure if that wouldn't complicate things. Fixes: 059c53b32329 ("iio: adc: