diff options
author | Miaoqian Lin <[email protected]> | 2022-03-16 01:40:57 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-03-16 16:39:20 +0000 |
commit | 28a265a1ee11febeec5ea73a804f30dcec3181ca (patch) | |
tree | 2d8ebe9a4689c90978b75606d92a452268149f7e /tools/perf/scripts/python | |
parent | 740dc3e846537c3743da98bf106f376023fd085c (diff) |
ASoC: mediatek: Fix error handling in mt8183_da7219_max98357_dev_probe
The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.
This function only calls of_node_put() in the regular path.
And it will cause refcount leak in error paths.
Fix this by calling of_node_put() in error handling too.
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions