]> 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)
commita4ad214fe3a2f5c477d1871f9714d59b83140191
tree998114ee5e3d34158006efabf7d1be4ccf56832d
parent51a45bcc128b4bbbd9c2101cbdf66c5001271e3d
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