]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.18-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Sep 2018 12:43:49 +0000 (14:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Sep 2018 12:43:49 +0000 (14:43 +0200)
added patches:
asoc-wm8994-fix-missing-break-in-switch.patch

queue-3.18/asoc-wm8994-fix-missing-break-in-switch.patch [new file with mode: 0644]
queue-3.18/series

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 (file)
index 0000000..5b91478
--- /dev/null
@@ -0,0 +1,35 @@
+From ad0eaee6195db1db1749dd46b9e6f4466793d178 Mon Sep 17 00:00:00 2001
+From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
+Date: Mon, 6 Aug 2018 07:14:51 -0500
+Subject: ASoC: wm8994: Fix missing break in switch
+
+From: Gustavo A. R. Silva <gustavo@embeddedor.com>
+
+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 <valdis.kletnieks@vt.edu>
+Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
+Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
+Signed-off-by: Mark Brown <broonie@kernel.org>
+Cc: stable@vger.kernel.org
+[Gustavo: Backported to 3.16..4.18 - Remove code comment removal]
+Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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;
index 6dd5bdce1bd9224b5e2d534ae7eea9284e96ee34..680af568d58f95edbf611baf7597c292d4b3223e 100644 (file)
@@ -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