lkdtm/bugs: Switch from 1-element array to flexible array
authorKees Cook <keescook@chromium.org>
Mon, 22 May 2023 21:28:46 +0000 (14:28 -0700)
committerKees Cook <keescook@chromium.org>
Tue, 30 May 2023 23:42:00 +0000 (16:42 -0700)
commitb45861ed66ded8b31c718ed096c993dfba2b07df
treed57e8782d64ea392db17e1f29ef459ab4442079d
parent7391928025f28cd4cab43e59d2b4e36509b9337e
lkdtm/bugs: Switch from 1-element array to flexible array

The testing for ARRAY_BOUNDS just wants an uninstrumented array,
and the proper flexible array definition is fine for that.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Bill Wendling <morbo@google.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
drivers/misc/lkdtm/bugs.c