scsi: mpt3sas: Don't access the structure after decrementing it's instance reference...
authorChaitra P B <chaitra.basappa@broadcom.com>
Thu, 31 May 2018 10:34:49 +0000 (06:34 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 19 Jun 2018 01:05:32 +0000 (21:05 -0400)
commit20a044332dc47e91045670311f9f9dcb1e32483f
treeb9ead1a38868408fdf621446d03ba4e3fd1130e1
parente3586147b8b123fcaf739f4dcda741e13c5eaf9e
scsi: mpt3sas: Don't access the structure after decrementing it's instance reference count.

While configuring of NVMe device handling, _pcie_device structure member
was accessed after its reference count is decremented/put. Hence modified
code to access member of _pcie_device structure before its reference count
is decremented/put.

Signed-off-by: Chaitra P B <chaitra.basappa@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_scsih.c