]> 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)
commit7fa88b1136a18d1a9e14d2f734c9f083afa038d2
treec2954ddbd2bef7bb7381debed5667b8919da84b2
parent95dfe07571b3bcc7ed5aef0248f1683e307aee11
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: e04b93716ce5 ("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