diff options
author | Tobias Jordan | 2020-09-26 18:19:46 +0200 |
---|---|---|
committer | Jonathan Cameron | 2020-09-29 17:50:51 +0100 |
commit | da4410d4078ba4ead9d6f1027d6db77c5a74ecee (patch) | |
tree | 7ec56cb4f676c67d904f73142c6c245338375d92 /security | |
parent | c537d3457542a398caa1fe58e0976c5f83cf7281 (diff) |
iio: adc: gyroadc: fix leak of device node iterator
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 <kernel@cdqe.de>
Link: https://lore.kernel.org/r/20200926161946.GA10240@agrajag.zerfleddert.de
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions