]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
scsi: hisi_sas: fix a typo in hisi_sas_task_prep()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 26 May 2018 09:34:22 +0000 (09:34 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 May 2018 01:36:51 +0000 (21:36 -0400)
Fix a typo in hisi_sas_task_prep().

Fixes: 7eee4b921822 ("scsi: hisi_sas: relocate smp sg map")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas_main.c

index 39f694eb7b004ce8fe7eecd659676ac7eacf6fe1..6d3796553272bfc15fe8bb9752272714f213b255 100644 (file)
@@ -390,7 +390,7 @@ static int hisi_sas_task_prep(struct sas_task *task,
                        }
                        n_elem_resp = dma_map_sg(dev, &task->smp_task.smp_resp,
                                                 1, DMA_FROM_DEVICE);
-                       if (!n_elem_req) {
+                       if (!n_elem_resp) {
                                rc = -ENOMEM;
                                goto err_out_dma_unmap;
                        }