diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-05-11 09:58:03 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-11 19:42:09 +0300 |
commit | 41cd312dfe980af869c3503b4d38e62ed20dd3b7 (patch) | |
tree | d12ebb2d33f4fcb2bcfb6eb164eb75267c6aae44 /sound/soc/fsl/efika-audio-fabric.c | |
parent | 71013db522a90513e4e4ec3b33eb00c939e2f4b3 (diff) | |
download | linux-41cd312dfe980af869c3503b4d38e62ed20dd3b7.tar.xz |
ASoC: fsl: Fix refcount leak in imx_sgtl5000_probe
of_find_i2c_device_by_node() takes a reference,
In error paths, we should call put_device() to drop
the reference to aviod refount leak.
Fixes: 81e8e4926167 ("ASoC: fsl: add sgtl5000 clock support for imx-sgtl5000")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Link: https://lore.kernel.org/r/20220511065803.3957-1-linmq006@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/efika-audio-fabric.c')
0 files changed, 0 insertions, 0 deletions