]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 10:31:45 +0000 (12:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 10:31:45 +0000 (12:31 +0200)
added patches:
sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch

queue-4.9/series
queue-4.9/sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch [new file with mode: 0644]

index 29f1e308f2e89af4c00ef25c06db04031c8c95c8..9fb317f01cbd32cff6afcdd127c3e389f82daeac 100644 (file)
@@ -40,3 +40,4 @@ smb3-send-cap_dfs-capability-during-session-setup.patch
 mwifiex-fix-802.11n-wpa-detection.patch
 iwlwifi-don-t-unmap-as-page-memory-that-was-mapped-as-single.patch
 scsi-mpt3sas-use-63-bit-dma-addressing-on-sas35-hba.patch
+sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch
diff --git a/queue-4.9/sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch b/queue-4.9/sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch
new file mode 100644 (file)
index 0000000..efab626
--- /dev/null
@@ -0,0 +1,34 @@
+From 1ee1119d184bb06af921b48c3021d921bbd85bac Mon Sep 17 00:00:00 2001
+From: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
+Date: Fri, 9 Aug 2019 23:43:56 -0500
+Subject: sh: kernel: hw_breakpoint: Fix missing break in switch statement
+
+From: Gustavo A. R. Silva <gustavo@embeddedor.com>
+
+commit 1ee1119d184bb06af921b48c3021d921bbd85bac upstream.
+
+Add missing break statement in order to prevent the code from falling
+through to case SH_BREAKPOINT_WRITE.
+
+Fixes: 09a072947791 ("sh: hw-breakpoints: Add preliminary support for SH-4A UBC.")
+Cc: stable@vger.kernel.org
+Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
+Reviewed-by: Guenter Roeck <linux@roeck-us.net>
+Tested-by: Guenter Roeck <linux@roeck-us.net>
+Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ arch/sh/kernel/hw_breakpoint.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/sh/kernel/hw_breakpoint.c
++++ b/arch/sh/kernel/hw_breakpoint.c
+@@ -160,6 +160,7 @@ int arch_bp_generic_fields(int sh_len, i
+       switch (sh_type) {
+       case SH_BREAKPOINT_READ:
+               *gen_type = HW_BREAKPOINT_R;
++              break;
+       case SH_BREAKPOINT_WRITE:
+               *gen_type = HW_BREAKPOINT_W;
+               break;