mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-30 07:29:42 -05:00
ASoC: fsl-asoc-card: fix object reference leaks in fsl_asoc_card_probe
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Signed-off-by: Wen Yang <[email protected]> Cc: Timur Tabi <[email protected]> Cc: Nicolin Chen <[email protected]> Cc: Xiubo Li <[email protected]> Cc: Fabio Estevam <[email protected]> Cc: Liam Girdwood <[email protected]> Cc: Mark Brown <[email protected]> Cc: Jaroslav Kysela <[email protected]> Cc: Takashi Iwai <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Mark Brown <[email protected]>
This commit is contained in:
parent
411db2ab7d
commit
11907e9d35
1 changed files with 1 additions and 0 deletions
|
|
@ -689,6 +689,7 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
|
|||
asrc_fail:
|
||||
of_node_put(asrc_np);
|
||||
of_node_put(codec_np);
|
||||
put_device(&cpu_pdev->dev);
|
||||
fail:
|
||||
of_node_put(cpu_np);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue