scsi: qla2xxx: Fix partial flash write of MBI
authorQuinn Tran <qutran@marvell.com>
Tue, 22 Oct 2019 19:36:43 +0000 (12:36 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Oct 2019 02:36:04 +0000 (22:36 -0400)
commit8d8b83f5be2a3bdac3695a94e6cb5e50bd114869
treeae9ede49f3022470aed13e204ade4934dd4a21ba
parentc2ff2a36eff60efb5e123c940115216d6bf65684
scsi: qla2xxx: Fix partial flash write of MBI

For new adapters with multiple flash regions to write to, current code
allows FW & Boot regions to be written, while other regions are blocked via
sysfs. The fix is to block all flash read/write through sysfs interface.

Fixes: e81d1bcbde06 ("scsi: qla2xxx: Further limit FLASH region write access from SysFS")
Cc: stable@vger.kernel.org # 5.2
Link: https://lore.kernel.org/r/20191022193643.7076-3-hmadhani@marvell.com
Signed-off-by: Quinn Tran <qutran@marvell.com>
Signed-off-by: Girish Basrur <gbasrur@marvell.com>
Signed-off-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_attr.c