Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: frequency: adf4371: fix possible leak
When returning early from a device_for_each_child_node() loop, we need to call fwnode_handle_put() on the child node so it does not leak. For that make use of device_for_each_child_node_scoped() which will automatically drop the node reference as soon as go out of the loop scope. Fixes: c8e6b34 ("iio: frequency: adf4371: Introduce channel child nodes") Signed-off-by: Nuno Sa <[email protected]>
- Loading branch information