diff options
-rw-r--r-- | drivers/scsi/mpt2sas/mpt2sas_ctl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_ctl.c b/drivers/scsi/mpt2sas/mpt2sas_ctl.c index 2d4f85c9d7a1..e0eab0a9bc4c 100644 --- a/drivers/scsi/mpt2sas/mpt2sas_ctl.c +++ b/drivers/scsi/mpt2sas/mpt2sas_ctl.c | |||
@@ -714,8 +714,10 @@ _ctl_do_mpt_command(struct MPT2SAS_ADAPTER *ioc, | |||
714 | 714 | ||
715 | if (tm_request->TaskType == | 715 | if (tm_request->TaskType == |
716 | MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK) { | 716 | MPI2_SCSITASKMGMT_TASKTYPE_ABORT_TASK) { |
717 | if (_ctl_do_task_abort(ioc, &karg, tm_request)) | 717 | if (_ctl_do_task_abort(ioc, &karg, tm_request)) { |
718 | mpt2sas_base_free_smid(ioc, smid); | ||
718 | goto out; | 719 | goto out; |
720 | } | ||
719 | } | 721 | } |
720 | 722 | ||
721 | mutex_lock(&ioc->tm_cmds.mutex); | 723 | mutex_lock(&ioc->tm_cmds.mutex); |