aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt3sas/mpi/mpi2_image.h
diff options
context:
space:
mode:
authorSuganath Prabu <suganath-prabu.subramani@broadcom.com>2019-08-03 09:59:48 -0400
committerMartin K. Petersen <martin.petersen@oracle.com>2019-08-07 22:46:19 -0400
commitffedeae1fa545a1d07e6827180c3923bf67af59f (patch)
treeeb25d3e12358d53e2aef7dc4718a9efc9bf78ed1 /drivers/scsi/mpt3sas/mpi/mpi2_image.h
parente224e03b0c6a2381ed1ea5325c846582d87d6fae (diff)
scsi: mpt3sas: Gracefully handle online firmware update
Issue: During online Firmware upgrade operations it is possible that MaxDevHandles filled in IOCFacts may change with new FW. With this we may observe kernel panics when driver try to access the pd_handles or blocking_handles buffers at offset greater than the old firmware's MaxDevHandle value. Fix: _base_check_ioc_facts_changes() looks for increase/decrease in IOCFacts attributes during online firmware upgrade and increases the pd_handles, blocking_handles, etc buffer sizes to new firmware's MaxDevHandle value if this new firmware's MaxDevHandle value is greater than the old firmware's MaxDevHandle value. Signed-off-by: Suganath Prabu <suganath-prabu.subramani@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_image.h')
0 files changed, 0 insertions, 0 deletions