scsi: qedi: remove declaration of nvm_image from stack
authorColin Ian King <colin.king@canonical.com>
Wed, 27 Mar 2019 18:11:03 +0000 (18:11 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 29 Mar 2019 14:02:51 +0000 (10:02 -0400)
commit872e192fab643887f143106eb56443d87e5e87c1
tree7221e8e783094a106fcabf1695a0dee1c3cdab92
parentd6e2635b9cf7982102750c5d9e4ba1474afa0981
scsi: qedi: remove declaration of nvm_image from stack

The nvm_image is a large struct qedi_nvm_iscsi_image object of over 24K so
don't declare it on the stack just for a sizeof requirement; use sizeof on
struct qedi_nvm_iscsi_image instead.

Fixes: c77a2fa3ff8f ("scsi: qedi: Add the CRC size within iSCSI NVM image")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c