scsi: qla2xxx: Check secondary image if reading the primary image fails
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:02:00 +0000 (20:02 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:34:08 +0000 (21:34 -0400)
commit0597fe601a3a7d103c35b922046251906e0349b3
treec9ee9435f6d6a8eecf5c815252e7a62d61962bdf
parentc43e7832ee77daadf147876b93f23035b89fa028
scsi: qla2xxx: Check secondary image if reading the primary image fails

This patch fixes several Coverity complaints about reading data that has
not been initialized.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Tested-by: Himanshu Madhani <hmadhani@marvell.com>
Reviewed-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_init.c