]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: put device_node on remove
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 9 Jun 2018 22:20:54 +0000 (01:20 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:54:38 +0000 (12:54 +0100)
commit2a88ee3747ade19af7d7d519af7657a1323a48d7
tree00fa4a036e5ecb0e583679e33f81dc061e506d73
parent2226cdab3d4bfd8704646a3c0ae858139be9f9d2
ASoC: rockchip: put device_node on remove

snd_rk_mc_probe() gets a couple of device nodes with of_parse_phandle(),
but there is no release of them.

The patch adds remove handler and proper error handling in the probe.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_rt5645.c