]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: Fix possible NULL pointer dereference
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Fri, 21 Apr 2017 00:41:20 +0000 (00:41 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 21 Apr 2017 16:51:48 +0000 (17:51 +0100)
commit2b1acf23b0a22e1c44c6f3cd8cccd9b22b27d8af
tree2ae9efc7f10f342bc93ff235facea2ead65a68d3
parent5556248f821223f99e05c373748a61198c44988e
ASoC: rsnd: Fix possible NULL pointer dereference

6ff3a22433ae9d43a0c310a425abe9ab7b8cb014
("ASoC: rsnd: enable clock-frequency for both 44.1kHz/48kHz")
supports both 44.1kHz/48kHz clock-frequency settings for ADG
which will be used for AUDIO_OLKOUTn.
But some board doesn't need it, thus, it is not mandatory.

But, above patch didn't care about the case of "clock-frequency" DT
property was not present.
This patch ignores ADG settings if AUDIO_OLKOUTn was not used.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
[Kuninori: tidyup not to break non AUDIO_OLKOUTn case]
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/adg.c