From: Mihai Carabas Date: Thu, 7 Jun 2018 20:10:14 +0000 (+0300) Subject: kernel: sys.c: missing break for prctl spec ctrl X-Git-Tag: v4.1.12-124.31.3~729 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1d65ac9edbfad5295b43c1939eff58972afd4cda;p=users%2Fjedix%2Flinux-maple.git kernel: sys.c: missing break for prctl spec ctrl In the process of backporting speculation control bits a break was missed which is causing prctl with PR_SET_SPECULATION_CTRL to also fail. Orabug: 28144775 Signed-off-by: Mihai Carabas Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: Brian Maly --- diff --git a/kernel/sys.c b/kernel/sys.c index b58e79dd6d8d..b81d8e15810e 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -2264,6 +2264,7 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, if (arg4 || arg5) return -EINVAL; error = arch_prctl_spec_ctrl_set(me, arg2, arg3); + break; default: error = -EINVAL; break;