linux_dsm_epyc7002/sound/soc/rockchip
Douglas Anderson 8eae6c2585 ASoC: rockchip: Allocate enough memory so we don't overflow routes
In the recent commit d9f9c167ed ("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: d9f9c167ed ("ASoC: rockchip: Init dapm routes dynamically")
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
2017-10-04 11:30:17 +01:00
..
Kconfig ASoC: rockchip: Add support for DMIC codec 2017-08-29 20:12:01 +01:00
Makefile ASoC: rockchip: add support for pdm controller 2017-06-13 19:09:34 +01:00
rk3288_hdmi_analog.c ASoC: rockchip: Remove unnecessary function call 2017-08-21 17:13:20 +01:00
rk3399_gru_sound.c ASoC: rockchip: Allocate enough memory so we don't overflow routes 2017-10-04 11:30:17 +01:00
rockchip_i2s.c Linux 4.14-rc1 2017-09-19 14:12:47 +01:00
rockchip_i2s.h ASoC: rockchip: i2s: add other configurable formats 2017-06-13 21:47:40 +01:00
rockchip_max98090.c ASoC: rockchip: constify snd_soc_ops structures 2016-10-24 18:33:17 +01:00
rockchip_pdm.c ASoC: rockchip: constify snd_soc_dai_ops structures 2017-08-15 18:11:10 +01:00
rockchip_pdm.h ASoC: rockchip: add support for pdm controller 2017-06-13 19:09:34 +01:00
rockchip_rt5645.c ASoC: rockchip: constify snd_soc_ops structures 2016-10-24 18:33:17 +01:00
rockchip_spdif.c ASoC: rockchip: add bindings for spdif controller 2017-06-13 21:47:36 +01:00
rockchip_spdif.h Merge remote-tracking branches 'asoc/fix/davinci', 'asoc/fix/es8328', 'asoc/fix/fsl-sai', 'asoc/fix/rockchip', 'asoc/fix/sgtl5000' and 'asoc/fix/wm8974' into asoc-linus 2015-12-23 00:23:27 +00:00