]> Git Repo - linux.git/commit
ASoC: cs35l56: fix usages of device_get_named_child_node()
authorPierre-Louis Bossart <[email protected]>
Fri, 26 Apr 2024 15:29:39 +0000 (10:29 -0500)
committerMark Brown <[email protected]>
Mon, 29 Apr 2024 14:48:56 +0000 (23:48 +0900)
commitfbd741f0993203d07b2b6562d68d1e5e4745b59b
tree793d0c56f62d297c6f05962ee2ea58c0fc735161
parente8a6a5ad73acbafd98e8fd3f0cbf6e379771bb76
ASoC: cs35l56: fix usages of device_get_named_child_node()

The documentation for device_get_named_child_node() mentions this
important point:

"
The caller is responsible for calling fwnode_handle_put() on the
returned fwnode pointer.
"

Add fwnode_handle_put() to avoid leaked references.

Signed-off-by: Pierre-Louis Bossart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
sound/soc/codecs/cs35l56.c
This page took 0.058414 seconds and 4 git commands to generate.