]> Git Repo - linux.git/commit
ASoC: da7219-aad: fix usage of device_get_named_child_node()
authorPierre-Louis Bossart <[email protected]>
Fri, 26 Apr 2024 15:30:33 +0000 (10:30 -0500)
committerMark Brown <[email protected]>
Mon, 29 Apr 2024 14:48:56 +0000 (23:48 +0900)
commite8a6a5ad73acbafd98e8fd3f0cbf6e379771bb76
treeff1d2903df8f3653c22045da9abceab66976f6ec
parent6db26f9ea4edd8a17d39ab3c20111e3ccd704aef
ASoC: da7219-aad: fix usage 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 a leaked reference.

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/da7219-aad.c
This page took 0.050226 seconds and 4 git commands to generate.