diff options
Diffstat (limited to 'drivers/s390/scsi/zfcp_fc.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_fc.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/scsi/zfcp_fc.h b/drivers/s390/scsi/zfcp_fc.h index 85c37d2b82c2..938d50360166 100644 --- a/drivers/s390/scsi/zfcp_fc.h +++ b/drivers/s390/scsi/zfcp_fc.h | |||
@@ -220,6 +220,9 @@ void zfcp_fc_scsi_to_fcp(struct fcp_cmnd *fcp, struct scsi_cmnd *scsi) | |||
220 | memcpy(fcp->fc_cdb, scsi->cmnd, scsi->cmd_len); | 220 | memcpy(fcp->fc_cdb, scsi->cmnd, scsi->cmd_len); |
221 | 221 | ||
222 | fcp->fc_dl = scsi_bufflen(scsi); | 222 | fcp->fc_dl = scsi_bufflen(scsi); |
223 | |||
224 | if (scsi_get_prot_type(scsi) == SCSI_PROT_DIF_TYPE1) | ||
225 | fcp->fc_dl += fcp->fc_dl / scsi->device->sector_size * 8; | ||
223 | } | 226 | } |
224 | 227 | ||
225 | /** | 228 | /** |