qla2xxx: Remove decrement of sp reference count in abort handler.

Fix for memory leak when command is not found by firmware due to
mismatch in sp reference count.

Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com>
Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
This commit is contained in:
Chad Dupuis 2015-08-04 13:38:00 -04:00 коммит произвёл James Bottomley
Родитель 03aa868c1b
Коммит 96219424f2
1 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -967,14 +967,9 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd)
spin_unlock_irqrestore(&ha->hardware_lock, flags);
rval = ha->isp_ops->abort_command(sp);
if (rval) {
if (rval == QLA_FUNCTION_PARAMETER_ERROR) {
/*
* Decrement the ref_count since we can't find the
* command
*/
atomic_dec(&sp->ref_count);
if (rval == QLA_FUNCTION_PARAMETER_ERROR)
ret = SUCCESS;
} else
else
ret = FAILED;
ql_dbg(ql_dbg_taskm, vha, 0x8003,