]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: audio-graph-card: add missing const at graph_get_dai_id()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 11 Jul 2019 04:10:45 +0000 (13:10 +0900)
committerMark Brown <broonie@kernel.org>
Thu, 11 Jul 2019 11:27:29 +0000 (12:27 +0100)
commitd18f873499193c9cc14e6c4a22200e3c80bcd8a6
tree1c38aeb94ef2ff855d88b6d325f13333d0630568
parent539ec3942dbc967eb80b84e4d6363fff0e032206
ASoC: audio-graph-card: add missing const at graph_get_dai_id()

commit dbbeeac07d133 ("ASoC: audio-graph-card: fix an use-after-free in
graph_get_dai_id()") fixups use-after-free issue,
but, it need to use "const" for reg. This patch adds it.

We will have below without this patch

LINUX/sound/soc/generic/audio-graph-card.c: In function 'graph_get_dai_id':
LINUX/sound/soc/generic/audio-graph-card.c:87:7: warning: assignment discards\
 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   reg = of_get_property(node, "reg", NULL);

Fixes: dbbeeac07d133 ("ASoC: audio-graph-card: fix an use-after-free in graph_get_dai_id()")
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Wen Yang <wen.yang99@zte.com.cn>
Link: https://lore.kernel.org/r/87sgrd43ja.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c