diff options
author | Randy Dunlap <[email protected]> | 2022-03-14 17:10:45 -0700 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-05-04 18:20:42 +0200 |
commit | 1ef64b1e89e6d4018da46e08ffc32779a31160c7 (patch) | |
tree | 642588661a91cefbadf4485ecda573e07e9ba5f6 /lib/mpi/mpi-sub-ui.c | |
parent | 12441ccdf5e2f5a01a46e344976cbbd3d46845c9 (diff) |
x86/mm: Cleanup the control_va_addr_alignment() __setup handler
Clean up control_va_addr_alignment():
a. Make '=' required instead of optional (as documented).
b. Print a warning if an invalid option value is used.
c. Return 1 from the __setup handler when an invalid option value is
used. This prevents the kernel from polluting init's (limited)
environment space with the entire string.
Fixes: dfb09f9b7ab0 ("x86, amd: Avoid cache aliasing penalties on AMD family 15h")
Reported-by: Igor Zhbanov <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions