aboutsummaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2022-06-14 11:05:30 +0200
committerGreg Kroah-Hartman <[email protected]>2022-06-27 14:17:11 +0200
commit139f39be42fcd5f88366d6f3e6f05002027d3514 (patch)
treedf1eb4c947f90850fba049a739924ade7ff02a62 /include/linux/stackprotector.h
parentdf36f3e3fbb76d30d623a1623e31e3ce9c2fa750 (diff)
tty/vt: consolemap: use ARRAY_SIZE(), part II.
The code still uses constants (macros) as bounds in loops after commit 17945d317a52 (tty/vt: consolemap: use ARRAY_SIZE()). The contants are at least macros used also in the definition of the arrays. But use ARRAY_SIZE() on two more places to ensure the loops never run out of bounds even if the array definition change. Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Jiri Slaby <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions