]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: lpfc: Fix BlockGuard enablement on FCoE adapters
authorJames Smart <jsmart2021@gmail.com>
Wed, 14 Aug 2019 23:57:02 +0000 (16:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 20 Aug 2019 02:41:11 +0000 (22:41 -0400)
commit4945c0f95bbfb35e230148f226c46868f4fdd55f
treeca463dad13c524cbaa540294829473f7c68a577b
parent845d0327bf0885e7d2fb6cb18e800491be793250
scsi: lpfc: Fix BlockGuard enablement on FCoE adapters

The driver is allowing the user to change lpfc_enable_bg while loading the
driver against a FCoE adapter. This is not supported.

No check is made for the adapter type when applying the blockguard
enablement value.

Fix by verifying the adapter type before setting the enablement flag.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c