Re: [PATCH] x86/spectre: fix an error message

2018-02-13 Thread Joe Perches
On Wed, 2018-02-14 at 10:14 +0300, Dan Carpenter wrote: > If i == ARRAY_SIZE(mitigation_options) then we accidentally print > garbage from one space beyond the end of the mitigation_options[] array. > > Fixes: 9005c6834c0f ("x86/spectre: Simplify spectre_v2 command line parsing") > Signed-off-by:

[PATCH] x86/spectre: fix an error message

2018-02-13 Thread Dan Carpenter
If i == ARRAY_SIZE(mitigation_options) then we accidentally print garbage from one space beyond the end of the mitigation_options[] array. Fixes: 9005c6834c0f ("x86/spectre: Simplify spectre_v2 command line parsing") Signed-off-by: Dan Carpenter diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86