]> git.baikalelectronics.ru Git - kernel.git/commit
lkdtm: remove intentional off-by-one array access
authorKees Cook <keescook@chromium.org>
Mon, 27 Jun 2016 05:26:11 +0000 (22:26 -0700)
committerKees Cook <keescook@chromium.org>
Thu, 7 Jul 2016 18:09:23 +0000 (11:09 -0700)
commitdd22c6694ad8065f7f90732234e4f00ed2ac40c0
tree1e1a1c5b13dfaa6f60955a71dad93e859bbb76a8
parent89748e133497ff43357bab85aed30f30e30a0589
lkdtm: remove intentional off-by-one array access

There wasn't a good reason for keeping the enum and the names out of sync
by 1 position just to avoid "NONE" and "INVALID" from being in the string
lists.

Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm_core.c