]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: mxs-saif: Fix refcount leak in mxs_saif_probe
authorMiaoqian Lin <linmq006@gmail.com>
Wed, 11 May 2022 13:37:22 +0000 (17:37 +0400)
committerMark Brown <broonie@kernel.org>
Wed, 11 May 2022 16:42:13 +0000 (17:42 +0100)
commitdcbee7583bf9a14d93896669caf0cfcba8a014ad
treec2954ddbd2bef7bb7381debed5667b8919da84b2
parent4f8404268ee6f104e37d6add209c78bc21aba92b
ASoC: mxs-saif: Fix refcount leak in mxs_saif_probe

of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when done.

Fixes: 5425ce0b110d ("ASoC: mxs: add device tree support for mxs-saif")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220511133725.39039-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mxs/mxs-saif.c