ASoC: tegra: fix device_node refcounting
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 15 Jun 2018 22:22:58 +0000 (01:22 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:55:57 +0000 (12:55 +0100)
commit7c5dfd549617b87db8e891ff4ecaa4a582b6c4cc
treec2a0b244df026901885e69d0554e332d0f3bf34c
parenta4519526ebbd261e36425fa1c269515ee0648ab2
ASoC: tegra: fix device_node refcounting

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

The patch adds the release to tegra_rt5677_remove() and
to error handling paths in the probe.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra_rt5677.c