aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_tmpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_tmpl.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_tmpl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_tmpl.c b/drivers/scsi/qla2xxx/qla_tmpl.c
index a9fa9b72b31a..cb9a0c4bc419 100644
--- a/drivers/scsi/qla2xxx/qla_tmpl.c
+++ b/drivers/scsi/qla2xxx/qla_tmpl.c
@@ -679,7 +679,8 @@ qla27xx_fwdt_entry_t274(struct scsi_qla_host *vha,
679 if (req || !buf) { 679 if (req || !buf) {
680 qla27xx_insert16(i, buf, len); 680 qla27xx_insert16(i, buf, len);
681 qla27xx_insert16(1, buf, len); 681 qla27xx_insert16(1, buf, len);
682 qla27xx_insert32(0, buf, len); 682 qla27xx_insert32(req && req->out_ptr ?
683 *req->out_ptr : 0, buf, len);
683 count++; 684 count++;
684 } 685 }
685 } 686 }
@@ -689,7 +690,8 @@ qla27xx_fwdt_entry_t274(struct scsi_qla_host *vha,
689 if (rsp || !buf) { 690 if (rsp || !buf) {
690 qla27xx_insert16(i, buf, len); 691 qla27xx_insert16(i, buf, len);
691 qla27xx_insert16(1, buf, len); 692 qla27xx_insert16(1, buf, len);
692 qla27xx_insert32(0, buf, len); 693 qla27xx_insert32(rsp && rsp->in_ptr ?
694 *rsp->in_ptr : 0, buf, len);
693 count++; 695 count++;
694 } 696 }
695 } 697 }