Skip to contentSkip to conversation

patch "iio: dac: ad5755: Add missing fwnode_handle_put()" added to char-misc-linus

PATCH [email protected] 1 participant 1 message Apr 11, 2023

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

iio: dac: ad5755: Add missing fwnode_handle_put()

to my char-misc git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git
in the char-misc-linus branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.

If you have any questions about this process, please let me know.

From ffef73791574b8da872cfbf881d8e3e9955fc130 Mon Sep 17 00:00:00 2001
From: Liang He <[email protected]>
Date: Wed, 22 Mar 2023 11:56:27 +0800
Subject: 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 3ac27afefd5d ("iio:dac:ad5755: Switch to generic firmware properties and drop pdata")
---
 drivers/iio/dac/ad5755.c | 1 +
 1 file changed, 1 insertion(+)
drivers/iio/dac/ad5755.c +1 -0
index beadfa938d2d..404865e35460 100644
@@ -802,6 +802,7 @@ static struct ad5755_platform_data *ad5755_parse_fw(struct device *dev)
 	return pdata;
 
  error_out:
+	fwnode_handle_put(pp);
 	devm_kfree(dev, pdata);
 	return NULL;
 }
Signature · 1 line
2.40.0