]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: mpt3sas: Fix possibility of using invalid Enclosure Handle for SAS device after...
authorSreekanth Reddy <sreekanth.reddy@broadcom.com>
Tue, 10 Oct 2017 13:11:21 +0000 (18:41 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Oct 2017 18:08:07 +0000 (14:08 -0400)
commitaba5a85c2fcf05a6922e28c7179526adad58f4b5
tree1cf132c8f8b17cea5ccddd85118590c15ccfcddc
parent7588895646b5a943d3310271885c5935123a455c
scsi: mpt3sas: Fix possibility of using invalid Enclosure Handle for SAS device after host reset

Enclosure handles are not updated after host reset.  As a result, driver
device structure is holding previously assigned enclosure handle which
is different from the enclosure handle populated in the corresponding
device page.

Modified the driver to update devices enclosure handles after host reset
to current value by referring the enclosure handles from corresponding
device pages

Signed-off-by: Sreekanth Reddy <Sreekanth.Reddy@broadcom.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_scsih.c