aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy.c
diff options
context:
space:
mode:
authorYuntao Wang <[email protected]>2023-12-12 23:05:06 +0800
committerAndrew Morton <[email protected]>2023-12-20 15:02:58 -0800
commit8474f82ade6f361169d85177b22279dcbe813219 (patch)
tree19224ed99cd9ac48f3b44bbf4ca98d7a18b5beaa /lib/test_fortify/write_overflow-strncpy.c
parentdb6b6fb70193f0defe4d5785e940156c06e9abbe (diff)
x86/kexec: simplify the logic of mem_region_callback()
The expression `mstart + resource_size(res) - 1` is actually equivalent to `res->end`, simplify the logic of this function to improve readability. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Yuntao Wang <[email protected]> Acked-by: Baoquan He <[email protected]> Cc: Bjorn Helgaas <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Simon Horman <[email protected]> Cc: Thomas Gleixner <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions