]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: hisi_sas: Fix return value when get_free_slot() failed
authorXiaofei Tan <tanxiaofei@huawei.com>
Mon, 21 May 2018 10:09:24 +0000 (18:09 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 02:40:32 +0000 (22:40 -0400)
commitd87e72fb4fda6c48909e870811ae5252d0520f99
tree3375c927c0d55afd31aa2f492ec9adab1ed2f422
parent31709548d2aca9861a72e2890d62fc87c52199de
scsi: hisi_sas: Fix return value when get_free_slot() failed

It is an step of executing task to get free slot. If the step fails, we
will cleanup LLDD resources and should return failure to upper layer or
internal caller to abort task execution of this time.

But in the current code, the caller of get_free_slot() doesn't return
failure when get_free_slot() failed. This patch is to fix it.

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c