From: Doug Maxey <dwm@xxxxxxxxxxx> In qla4xxx_send_command_to_isp(), pci_map_*() is used. At the other end, in qla4xxx_srb_free_dma(), dma_unmap_*() is used. Replace the call with the symmetrical call to pci_unmap_*(). Signed-off-by: Doug Maxey <dwm@xxxxxxxxxxx> --- drivers/scsi/qla4xxx/ql4_os.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c index d88c84f..5e10f30 100644 --- a/drivers/scsi/qla4xxx/ql4_os.c +++ b/drivers/scsi/qla4xxx/ql4_os.c @@ -382,10 +382,10 @@ static void qla4xxx_srb_free_dma(struct if (srb->flags & SRB_DMA_VALID) { if (cmd->use_sg) { - dma_unmap_sg(&ha->pdev->dev, cmd->request_buffer, + pci_unmap_sg(ha->pdev, cmd->request_buffer, cmd->use_sg, cmd->sc_data_direction); } else if (cmd->request_bufflen) { - dma_unmap_single(&ha->pdev->dev, srb->dma_handle, + pci_unmap_single(ha->pdev, srb->dma_handle, cmd->request_bufflen, cmd->sc_data_direction); } - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html