summaryrefslogtreecommitdiffstats
path: root/sound/soc/rockchip/rockchip_rt5645.c
diff options
context:
space:
mode:
authorDouglas Anderson2017-09-30 00:03:24 +0200
committerMark Brown2017-10-04 12:30:17 +0200
commit8eae6c2585b0455f0e7200495d5e513020ca2fa2 (patch)
tree9572d35a4c168595ec9d10e4163aae728910cf6c /sound/soc/rockchip/rockchip_rt5645.c
parentASoC: rockchip: Use bus_type to distinguish rt5514 dsp from rt5514 codec (diff)
downloadkernel-qcow2-linux-8eae6c2585b0455f0e7200495d5e513020ca2fa2.tar.gz
kernel-qcow2-linux-8eae6c2585b0455f0e7200495d5e513020ca2fa2.tar.xz
kernel-qcow2-linux-8eae6c2585b0455f0e7200495d5e513020ca2fa2.zip
ASoC: rockchip: Allocate enough memory so we don't overflow routes
In the recent commit d9f9c167edae ("ASoC: rockchip: Init dapm routes dynamically") we improperly allocated memory for the card->dapm_routes causing us to overflow the allocation on every boot. Oops. Let's allocate the correct amount of memory. We'll also add a check to make sure that we don't overrun memory even if we encounter some sort of weird device tree. Fixes: d9f9c167edae ("ASoC: rockchip: Init dapm routes dynamically") Signed-off-by: Douglas Anderson <dianders@chromium.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/rockchip/rockchip_rt5645.c')
0 files changed, 0 insertions, 0 deletions