]> git.baikalelectronics.ru Git - kernel.git/commit
lkdtm: cfi: use NULL for a null pointer rather than zero
authorColin Ian King <colin.i.king@gmail.com>
Sun, 12 Jun 2022 20:27:08 +0000 (21:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 14:16:07 +0000 (16:16 +0200)
commitaaa4badde137cfc45d9f3aa8e6ebffb0de3da601
treeaffd6d6b12e37d01579770310531f6c18363eac7
parent15887f805da0e97035b7d8fedd6cb2ecbb0a05be
lkdtm: cfi: use NULL for a null pointer rather than zero

There is a pointer being initialized with a zero, use NULL instead.

Cleans up sparse warning:
drivers/misc/lkdtm/cfi.c:100:27: warning: Using plain integer as NULL pointer

Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220612202708.2754270-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lkdtm/cfi.c