From: Greg Kroah-Hartman Date: Fri, 16 Aug 2019 10:31:45 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v4.19.68~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81d40b7683c0a354a0faf2798e55d3b2bced5a07;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch --- diff --git a/queue-4.9/series b/queue-4.9/series index 29f1e308f2e..9fb317f01cb 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -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 index 00000000000..efab626998d --- /dev/null +++ b/queue-4.9/sh-kernel-hw_breakpoint-fix-missing-break-in-switch-statement.patch @@ -0,0 +1,34 @@ +From 1ee1119d184bb06af921b48c3021d921bbd85bac Mon Sep 17 00:00:00 2001 +From: "Gustavo A. R. Silva" +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 + +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 +Reviewed-by: Guenter Roeck +Tested-by: Guenter Roeck +Signed-off-by: Gustavo A. R. Silva +Signed-off-by: Greg Kroah-Hartman + +--- + 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;