mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] hwmon: Fix resource leaks for device_node
@ 2026-01-15 13:22 Felix Gu
  2026-01-15 13:51 ` [PATCH 1/2] hwmon: emc2305: Fix a resource leak in emc2305_of_parse_pwm_child Felix Gu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Felix Gu @ 2026-01-15 13:22 UTC (permalink / raw)
  To: gu_0233, Guenter Roeck, Ban Feng; +Cc: linux-hwmon, linux-kernel

When calling of_parse_phandle_with_args(), the caller is responsible
to call of_node_put() to release the reference of device node.
In current code, it does not release the reference, causing a resource leak.

Signed-off-by: Felix Gu <gu_0233@qq.com>
---
Felix Gu (2):
      hwmon: emc2305: Fix a resource leak in emc2305_of_parse_pwm_child
      hwmon: nct7353: Fix a resource leak in nct7363_present_pwm_fanin

 drivers/hwmon/emc2305.c | 1 +
 drivers/hwmon/nct7363.c | 1 +
 2 files changed, 2 insertions(+)
---
base-commit: 9b7977f9e39b7768c70c2aa497f04e7569fd3e00
change-id: 20260115-hwmon-fixes-3d29ded39dbf

Best regards,
-- 
Felix Gu <gu_0233@qq.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-01-15 17:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-15 13:22 [PATCH 0/2] hwmon: Fix resource leaks for device_node Felix Gu
2026-01-15 13:51 ` [PATCH 1/2] hwmon: emc2305: Fix a resource leak in emc2305_of_parse_pwm_child Felix Gu
2026-01-15 16:45   ` Guenter Roeck
2026-01-15 13:54 ` [PATCH 2/2] hwmon: nct7363: Fix a resource leak in nct7363_present_pwm_fanin Felix Gu
2026-01-15 16:47   ` Guenter Roeck
2026-01-15 17:23 ` [0/2] hwmon: Fix resource leaks for device_node Markus Elfring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®