]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: ldlm: use designated initializers
authorKees Cook <keescook@chromium.org>
Sat, 17 Dec 2016 01:00:45 +0000 (17:00 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 13:57:06 +0000 (14:57 +0100)
Prepare to mark sensitive kernel structures for randomization by making
sure they're using designated initializers. These were identified during
allyesconfig builds of x86, arm, and arm64, with most initializer fixes
extracted from grsecurity.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_flock.c

index 722160784f8355e78afbcfff54196667853c6a5b..f815827532dc650a1bb4debdf1313efd651b0679 100644 (file)
@@ -143,7 +143,7 @@ static int ldlm_process_flock_lock(struct ldlm_lock *req, __u64 *flags,
        int added = (mode == LCK_NL);
        int overlaps = 0;
        int splitted = 0;
-       const struct ldlm_callback_suite null_cbs = { NULL };
+       const struct ldlm_callback_suite null_cbs = { };
 
        CDEBUG(D_DLMTRACE,
               "flags %#llx owner %llu pid %u mode %u start %llu end %llu\n",