Skip to content

Commit ffef737

Browse files
windhljic23
authored andcommitted
iio: dac: ad5755: Add missing fwnode_handle_put()
In ad5755_parse_fw(), we should add fwnode_handle_put() when break out of the iteration device_for_each_child_node() as it will automatically increase and decrease the refcounter. Fixes: 3ac27af ("iio:dac:ad5755: Switch to generic firmware properties and drop pdata") Signed-off-by: Liang He <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
1 parent 73a428b commit ffef737

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iio/dac/ad5755.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,7 @@ static struct ad5755_platform_data *ad5755_parse_fw(struct device *dev)
802802
return pdata;
803803

804804
error_out:
805+
fwnode_handle_put(pp);
805806
devm_kfree(dev, pdata);
806807
return NULL;
807808
}

0 commit comments

Comments
 (0)