diff options
author | Aashish Sharma <[email protected]> | 2023-04-11 06:04:31 +0530 |
---|---|---|
committer | Mark Brown <[email protected]> | 2023-04-11 12:40:07 +0100 |
commit | beed115c2ce78f990222a29abed042582df4e87c (patch) | |
tree | e62d1bdb5e5e51e93ec45300edd2297c29d66b5e /drivers/usb/cdns3/cdns3-debug.h | |
parent | faf15233e59052f4d61cad2da6e56daf33124d96 (diff) |
ASoC: mediatek: common: Fix refcount leak in parse_dai_link_info
Add missing of_node_put()s before the returns to balance
of_node_get()s and of_node_put()s, which may get unbalanced
in case the for loop 'for_each_available_child_of_node' returns
early.
Fixes: 4302187d955f ("ASoC: mediatek: common: add soundcard driver common code")
Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>
Link: https://lore.kernel.org/r/[email protected]/
Signed-off-by: Aashish Sharma <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Trevor Wu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions