diff options
author | Miaoqian Lin <[email protected]> | 2022-03-16 11:15:30 +0000 |
---|---|---|
committer | Mark Brown <[email protected]> | 2022-03-16 16:39:19 +0000 |
commit | 740dc3e846537c3743da98bf106f376023fd085c (patch) | |
tree | d60166d55ee79438b35687b9d6a2c51f2a3873f9 /tools/perf/scripts/python/check-perf-trace.py | |
parent | cc5d8ac95663a5813c696008bc524b794d471215 (diff) |
ASoC: atmel: Fix error handling in sam9x5_wm8731_driver_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 path.
Fixes: fdbcb3cba54b ("ASoC: atmel: machine driver for at91sam9x5-wm8731 boards")
Signed-off-by: Miaoqian Lin <[email protected]>
Reviewed-by: Codrin Ciubotariu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions