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)
commit329d416ca0ecc38c2be2515897d0e0e8780af1ce
tree1e1a1c5b13dfaa6f60955a71dad93e859bbb76a8
parent00f496c416122e7f5a572a4511cf87c7240ba761
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