All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] scsi: hisi_sas: fix a typo in hisi_sas_task_prep()
@ 2018-05-26  9:34 Wei Yongjun
  2018-05-29  1:37 ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2018-05-26  9:34 UTC (permalink / raw)
  To: kernel-janitors

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>
---
 drivers/scsi/hisi_sas/hisi_sas_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
index 39f694e..6d37965 100644
--- a/drivers/scsi/hisi_sas/hisi_sas_main.c
+++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
@@ -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;
 			}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] scsi: hisi_sas: fix a typo in hisi_sas_task_prep()
  2018-05-26  9:34 [PATCH -next] scsi: hisi_sas: fix a typo in hisi_sas_task_prep() Wei Yongjun
@ 2018-05-29  1:37 ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2018-05-29  1:37 UTC (permalink / raw)
  To: kernel-janitors


Wei,

> Fix a typo in hisi_sas_task_prep().

Applied to 4.18/scsi-queue. Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-29  1:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-26  9:34 [PATCH -next] scsi: hisi_sas: fix a typo in hisi_sas_task_prep() Wei Yongjun
2018-05-29  1:37 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.