Searched hist:"41 cd312dfe980af869c3503b4d38e62ed20dd3b7" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/sound/soc/fsl/ |
H A D | imx-sgtl5000.c | diff 41cd312dfe980af869c3503b4d38e62ed20dd3b7 Wed May 11 01:58:03 CDT 2022 Miaoqian Lin <linmq006@gmail.com> 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>
|