OSDN Git Service

iio: adc: ti-ads131e08: add missing fwnode_handle_put() in ads131e08_alloc_channels()
authorJialin Zhang <zhangjialin11@huawei.com>
Tue, 17 May 2022 03:30:20 +0000 (11:30 +0800)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Jun 2022 16:22:48 +0000 (17:22 +0100)
commit47dcf770abc793f347a65a24c24d550c936f08b0
tree74f9c26f643098206cbe3172b3e5609ea5d26ff5
parentd836715f588ea15f905f607c27bc693587058db4
iio: adc: ti-ads131e08: add missing fwnode_handle_put() in ads131e08_alloc_channels()

fwnode_handle_put() should be used when terminating
device_for_each_child_node() iteration with break or return to prevent
stale device node references from being left behind.

Fixes: d935eddd2799 ("iio: adc: Add driver for Texas Instruments ADS131E0x ADC family")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com>
Link: https://lore.kernel.org/r/20220517033020.2033324-1-zhangjialin11@huawei.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads131e08.c