scsi: qedi: qedf: Use designated initializers
authorKees Cook <keescook@chromium.org>
Wed, 29 Mar 2017 20:59:23 +0000 (13:59 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 20 Apr 2017 02:10:25 +0000 (22:10 -0400)
commitefacae6d4c095a5a99a012713089def1c5ad8906
treeb6ba2162900f01805da12ea24e5ba1f617078566
parentdaf0cd445a218314f9461d67d4f2b9c24cdd534b
scsi: qedi: qedf: Use designated initializers

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.

For these cases, terminate the list with { }, which will be zero-filled,
instead of undesignated NULLs.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedf/qedf_debugfs.c
drivers/scsi/qedi/qedi_debugfs.c