diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-13 04:27:23 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-04-13 04:27:23 +0300 |
commit | 17631462cd49f3dfa9db38a9e578c59f71ccf414 (patch) | |
tree | 0e44caf23bacf31cea3b414132db94ba92bd7e34 /drivers/scsi/mpt3sas/mpt3sas_base.c | |
parent | 4b3766ec0e1840f45bc9238e7e749922bdcb7016 (diff) | |
parent | 5c2442fd78998af60e13aba506d103f7f43f8701 (diff) | |
download | linux-17631462cd49f3dfa9db38a9e578c59f71ccf414.tar.xz |
Merge branch '5.1/scsi-fixes' into 5.2/merge
We have a few submissions for 5.2 that depend on fixes merged post
5.1-rc1. Merge the fixes branch into queue.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpt3sas_base.c')
-rw-r--r-- | drivers/scsi/mpt3sas/mpt3sas_base.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index 9c7012f4c412..05c0a1bfc96a 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -3397,12 +3397,18 @@ mpt3sas_base_free_smid(struct MPT3SAS_ADAPTER *ioc, u16 smid) if (smid < ioc->hi_priority_smid) { struct scsiio_tracker *st; + void *request; st = _get_st_from_smid(ioc, smid); if (!st) { _base_recovery_check(ioc); return; } + + /* Clear MPI request frame */ + request = mpt3sas_base_get_msg_frame(ioc, smid); + memset(request, 0, ioc->request_sz); + mpt3sas_base_clear_st(ioc, st); _base_recovery_check(ioc); return; |