scsi: lpfc: Fix crash during Hardware error recovery on SLI3 adapters
authorJames Smart <jsmart2021@gmail.com>
Sat, 4 Mar 2017 17:30:25 +0000 (09:30 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Dec 2017 08:28:19 +0000 (09:28 +0100)
commitd32c4dedcc6d989c63a2f31ac736c5f02e81f122
tree9fc21dd47e2fec49ca3a73bdc38c1f1787b70f46
parent1e7208d7592859b9ee15baa9fb884afe68116445
scsi: lpfc: Fix crash during Hardware error recovery on SLI3 adapters

[ Upstream commit 5d181531bc6169e19a02a27d202cf0e982db9d0e ]

if REG_VPI fails, the driver was incorrectly issuing INIT_VFI
(a SLI4 command) on a SLI3 adapter.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/scsi/lpfc/lpfc_els.c