aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r--drivers/scsi/scsi_error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 006a95916f72..a69397fd314a 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -664,7 +664,9 @@ void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses,
664 ses->sdb = scmd->sdb; 664 ses->sdb = scmd->sdb;
665 ses->next_rq = scmd->request->next_rq; 665 ses->next_rq = scmd->request->next_rq;
666 ses->result = scmd->result; 666 ses->result = scmd->result;
667 ses->prot_op = scmd->prot_op;
667 668
669 scmd->prot_op = SCSI_PROT_NORMAL;
668 scmd->cmnd = ses->eh_cmnd; 670 scmd->cmnd = ses->eh_cmnd;
669 memset(scmd->cmnd, 0, BLK_MAX_CDB); 671 memset(scmd->cmnd, 0, BLK_MAX_CDB);
670 memset(&scmd->sdb, 0, sizeof(scmd->sdb)); 672 memset(&scmd->sdb, 0, sizeof(scmd->sdb));
@@ -722,6 +724,7 @@ void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd, struct scsi_eh_save *ses)
722 scmd->sdb = ses->sdb; 724 scmd->sdb = ses->sdb;
723 scmd->request->next_rq = ses->next_rq; 725 scmd->request->next_rq = ses->next_rq;
724 scmd->result = ses->result; 726 scmd->result = ses->result;
727 scmd->prot_op = ses->prot_op;
725} 728}
726EXPORT_SYMBOL(scsi_eh_restore_cmnd); 729EXPORT_SYMBOL(scsi_eh_restore_cmnd);
727 730