mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04: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:
1 parent
411db2ab7d
commit
11907e9d35
1 file changed
+1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user