]> git.baikalelectronics.ru Git - kernel.git/commit
sgi-xp: Use designated initializers
authorKees Cook <keescook@chromium.org>
Wed, 5 Apr 2017 05:07:10 +0000 (22:07 -0700)
committerKees Cook <keescook@chromium.org>
Sun, 28 May 2017 17:22:42 +0000 (10:22 -0700)
commitec6221a58c3cb27c1c39f43c8dea07527f642a39
tree998114ee5e3d34158006efabf7d1be4ccf56832d
parent279a125c34a420578730ebbc736008298b08ce9e
sgi-xp: Use designated initializers

Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. In this case, no initializers
are needed (they can be NULL initialized and callers adjusted to check
for NULL, which is more efficient than an indirect call).

Cc: Robin Holt <robinmholt@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Christoph Hellwig <hch@infradead.org>
drivers/misc/sgi-xp/xp.h
drivers/misc/sgi-xp/xp_main.c