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

2020-09-26 Thread Jonathan Cameron
On Sat, 26 Sep 2020 18:19:46 +0200 Tobias Jordan wrote: > Add missing of_node_put calls when exiting the for_each_child_of_node > loop in rcar_gyroadc_parse_subdevs early. > > Also add goto-exception handling for the error paths in that loop. > > Fixes: 059c53b32329 ("iio: adc: Add Renesas Gyro

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

2020-09-26 Thread Tobias Jordan
Add missing of_node_put calls when exiting the for_each_child_of_node loop in rcar_gyroadc_parse_subdevs early. Also add goto-exception handling for the error paths in that loop. Fixes: 059c53b32329 ("iio: adc: Add Renesas GyroADC driver") Signed-off-by: Tobias Jordan --- v2: - added an of_node_