scsi: fcoe: Statically initialize flogi_maddr
authorKees Cook <keescook@chromium.org>
Wed, 2 Jun 2021 18:00:00 +0000 (11:00 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Jun 2021 01:30:09 +0000 (21:30 -0400)
commitebab8e09a07f7f5e253d0b45aae7cbda0e360ebf
treed5ffa93f7f34c38b67b213c30df8bd3ad50b96b9
parent1b67f3d74e45e02e159afed6946c6e4ba11b7df6
scsi: fcoe: Statically initialize flogi_maddr

In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy() avoid using an inline const buffer
argument and instead just statically initialize the destination array
directly.

Link: https://lore.kernel.org/r/20210602180000.3326448-1-keescook@chromium.org
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c