diff options
Diffstat (limited to 'drivers/scsi/ipr.c')
-rw-r--r-- | drivers/scsi/ipr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 2f280d08fcc6..5244282cd97f 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
@@ -5021,6 +5021,8 @@ static int ipr_build_ioadl64(struct ipr_ioa_cfg *ioa_cfg, | |||
5021 | ipr_cmd->dma_use_sg = nseg; | 5021 | ipr_cmd->dma_use_sg = nseg; |
5022 | 5022 | ||
5023 | ioarcb->data_transfer_length = cpu_to_be32(length); | 5023 | ioarcb->data_transfer_length = cpu_to_be32(length); |
5024 | ioarcb->ioadl_len = | ||
5025 | cpu_to_be32(sizeof(struct ipr_ioadl64_desc) * ipr_cmd->dma_use_sg); | ||
5024 | 5026 | ||
5025 | if (scsi_cmd->sc_data_direction == DMA_TO_DEVICE) { | 5027 | if (scsi_cmd->sc_data_direction == DMA_TO_DEVICE) { |
5026 | ioadl_flags = IPR_IOADL_FLAGS_WRITE; | 5028 | ioadl_flags = IPR_IOADL_FLAGS_WRITE; |