From: Greg Kroah-Hartman Date: Thu, 13 Sep 2018 12:43:49 +0000 (+0200) Subject: 3.18-stable patches X-Git-Tag: v4.4.156~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=48fca108e12b9239a265b4429a8a371238fef007;p=thirdparty%2Fkernel%2Fstable-queue.git 3.18-stable patches added patches: asoc-wm8994-fix-missing-break-in-switch.patch --- diff --git a/queue-3.18/asoc-wm8994-fix-missing-break-in-switch.patch b/queue-3.18/asoc-wm8994-fix-missing-break-in-switch.patch new file mode 100644 index 00000000000..5b914781b6c --- /dev/null +++ b/queue-3.18/asoc-wm8994-fix-missing-break-in-switch.patch @@ -0,0 +1,35 @@ +From ad0eaee6195db1db1749dd46b9e6f4466793d178 Mon Sep 17 00:00:00 2001 +From: "Gustavo A. R. Silva" +Date: Mon, 6 Aug 2018 07:14:51 -0500 +Subject: ASoC: wm8994: Fix missing break in switch + +From: Gustavo A. R. Silva + +commit ad0eaee6195db1db1749dd46b9e6f4466793d178 upstream. + +Add missing break statement in order to prevent the code from falling +through to the default case. + +Addresses-Coverity-ID: 115050 ("Missing break in switch") +Reported-by: Valdis Kletnieks +Signed-off-by: Gustavo A. R. Silva +Acked-by: Charles Keepax +Signed-off-by: Mark Brown +Cc: stable@vger.kernel.org +[Gustavo: Backported to 3.16..4.18 - Remove code comment removal] +Signed-off-by: Gustavo A. R. Silva +Signed-off-by: Greg Kroah-Hartman +--- + sound/soc/codecs/wm8994.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/sound/soc/codecs/wm8994.c ++++ b/sound/soc/codecs/wm8994.c +@@ -2427,6 +2427,7 @@ static int wm8994_set_dai_sysclk(struct + snd_soc_update_bits(codec, WM8994_POWER_MANAGEMENT_2, + WM8994_OPCLK_ENA, 0); + } ++ break; + + default: + return -EINVAL; diff --git a/queue-3.18/series b/queue-3.18/series index 6dd5bdce1bd..680af568d58 100644 --- a/queue-3.18/series +++ b/queue-3.18/series @@ -29,3 +29,4 @@ irda-fix-memory-leak-caused-by-repeated-binds-of-irda-socket.patch irda-only-insert-new-objects-into-the-global-database-via-setsockopt.patch enic-do-not-call-enic_change_mtu-in-enic_probe.patch fixes-commit-86af955d02bb-mm-numa-avoid-waiting-on-freed-migrated-pages.patch +asoc-wm8994-fix-missing-break-in-switch.patch