diff options
author | Takashi Iwai <[email protected]> | 2019-02-19 16:46:49 +0100 |
---|---|---|
committer | Mark Brown <[email protected]> | 2019-02-20 12:12:37 +0000 |
commit | 0b9c9ed6dd3b61b1d3ef1638786a7216006f67c5 (patch) | |
tree | b7d7b6fbc425ed891d940edf38825aa36cafa8c2 /lib/mpi/mpi-cmp.c | |
parent | 44662f90cda7ce0b65e77a7f1eefe45fb9053a4e (diff) |
ASoC: simple-card: Fix of-node refcount unbalance in DAI-link parser
The function simple_for_each_link() has a few missing places that
forgot unrefereing of-nodes after the use. The main do-while loop
may abort when loop=0, and this leaves the node object still
referenced. A similar leak is found in the error handling of NULL
codec that aborts the loop as well. Last but not least, the inner
for_each_child_of_node() loop may abort in the middle, and this leaks
the refcount of the iterator node.
This patch addresses these missing refcount issues.
Signed-off-by: Takashi Iwai <[email protected]>
Acked-by: Kuninori Morimoto <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions