]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-hdmi: add put_device() after of_find_device_by_node()
authorYe Guojin <ye.guojin@zte.com.cn>
Wed, 10 Nov 2021 00:29:10 +0000 (00:29 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 26 Nov 2021 13:24:28 +0000 (13:24 +0000)
commit501d5fb2c830cc2912fbe0833b18cdc73403546c
tree53806fdb69ce5e5c4b2fe8a6fbf9c296bc8cf11a
parentd006f488f556e88119c98b6512b000f34fc4ed9a
ASoC: imx-hdmi: add put_device() after of_find_device_by_node()

This was found by coccicheck:
./sound/soc/fsl/imx-hdmi.c,209,1-7,ERROR  missing put_device; call
of_find_device_by_node on line 119, but without a corresponding object
release within this function.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Ye Guojin <ye.guojin@zte.com.cn>
Link: https://lore.kernel.org/r/20211110002910.134915-1-ye.guojin@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-hdmi.c