]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dmaengine: do not use a NULL prepare_slave_config() callback
authorCodrin Ciubotariu <codrin.ciubotariu@microchip.com>
Mon, 7 Mar 2022 12:21:57 +0000 (14:21 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 8 Mar 2022 13:38:56 +0000 (13:38 +0000)
commit6212d9652f2b3c994f5951931da18e8680f14f19
tree22759f4b992c12a5a0cecf37c6fb2d67e0eb8c10
parent56e6515a65aeab23b512de34d6e182c0f7522c80
ASoC: dmaengine: do not use a NULL prepare_slave_config() callback

Even if struct snd_dmaengine_pcm_config is used, prepare_slave_config()
callback might not be set. Check if this callback is set before using it.

Fixes: 05a22446b008 ("ASoC: dmaengine-pcm: Provide default config")
Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@microchip.com>
Link: https://lore.kernel.org/r/20220307122202.2251639-2-codrin.ciubotariu@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c