From: Greg Kroah-Hartman Date: Mon, 6 May 2019 08:36:10 +0000 (+0200) Subject: 4.14-stable patches X-Git-Tag: v4.9.174~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d1008695fa4414b403e06722594ba424987c1ff;p=thirdparty%2Fkernel%2Fstable-queue.git 4.14-stable patches added patches: asoc-stm32-fix-sai-driver-name-initialisation.patch --- diff --git a/queue-4.14/asoc-stm32-fix-sai-driver-name-initialisation.patch b/queue-4.14/asoc-stm32-fix-sai-driver-name-initialisation.patch new file mode 100644 index 00000000000..1ac7832a476 --- /dev/null +++ b/queue-4.14/asoc-stm32-fix-sai-driver-name-initialisation.patch @@ -0,0 +1,40 @@ +From 17d3069ccf06970e2db3f7cbf4335f207524279e Mon Sep 17 00:00:00 2001 +From: Arnaud Pouliquen +Date: Fri, 5 Apr 2019 11:19:11 +0200 +Subject: ASoC: stm32: fix sai driver name initialisation + +From: Arnaud Pouliquen + +commit 17d3069ccf06970e2db3f7cbf4335f207524279e upstream. + +This patch fixes the sai driver structure overwriting which results in +a cpu dai name equal NULL. + +Fixes: 3e086ed ("ASoC: stm32: add SAI driver") + +Signed-off-by: Arnaud Pouliquen +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman + +--- + sound/soc/stm/stm32_sai_sub.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/sound/soc/stm/stm32_sai_sub.c ++++ b/sound/soc/stm/stm32_sai_sub.c +@@ -873,7 +873,6 @@ static int stm32_sai_sub_dais_init(struc + if (!sai->cpu_dai_drv) + return -ENOMEM; + +- sai->cpu_dai_drv->name = dev_name(&pdev->dev); + if (STM_SAI_IS_PLAYBACK(sai)) { + memcpy(sai->cpu_dai_drv, &stm32_sai_playback_dai, + sizeof(stm32_sai_playback_dai)); +@@ -883,6 +882,7 @@ static int stm32_sai_sub_dais_init(struc + sizeof(stm32_sai_capture_dai)); + sai->cpu_dai_drv->capture.stream_name = sai->cpu_dai_drv->name; + } ++ sai->cpu_dai_drv->name = dev_name(&pdev->dev); + + return 0; + } diff --git a/queue-4.14/series b/queue-4.14/series index f09d91061a1..736892d9dd7 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -61,3 +61,4 @@ staging-iio-adt7316-allow-adt751x-to-use-internal-vref-for-all-dacs.patch staging-iio-adt7316-fix-the-dac-read-calculation.patch staging-iio-adt7316-fix-the-dac-write-calculation.patch scsi-rdma-srpt-fix-a-credit-leak-for-aborted-commands.patch +asoc-stm32-fix-sai-driver-name-initialisation.patch