aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorChang S. Bae <[email protected]>2022-08-24 19:12:22 +0000
committerThomas Gleixner <[email protected]>2022-10-17 13:44:25 +0000
commitd3e021adac7c51a26d9ede167c789fcc1b878467 (patch)
treea7b1daf0dbda70611987f3a4a0de7ddf9353ef68 /lib/mpi/mpi-bit.c
parentx86/fpu: Configure init_fpstate attributes orderly (diff)
downloadkernel-d3e021adac7c51a26d9ede167c789fcc1b878467.tar.gz
kernel-d3e021adac7c51a26d9ede167c789fcc1b878467.zip
x86/fpu: Fix the init_fpstate size check with the actual size
The init_fpstate buffer is statically allocated. Thus, the sanity test was established to check whether the pre-allocated buffer is enough for the calculated size or not. The currently measured size is not strictly relevant. Fix to validate the calculated init_fpstate size with the pre-allocated area. Also, replace the sanity check function with open code for clarity. The abstraction itself and the function naming do not tend to represent simply what it does. Fixes: 2ae996e0c1a3 ("x86/fpu: Calculate the default sizes independently") Signed-off-by: Chang S. Bae <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions