aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_error.c2
-rw-r--r--include/scsi/scsi_eh.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index fc4b2d05f2e1..171b82d748cf 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -667,6 +667,7 @@ void scsi_eh_prep_cmnd(struct scsi_cmnd *scmd, struct scsi_eh_save *ses,
667 ses->sdb = scmd->sdb; 667 ses->sdb = scmd->sdb;
668 ses->next_rq = scmd->request->next_rq; 668 ses->next_rq = scmd->request->next_rq;
669 ses->result = scmd->result; 669 ses->result = scmd->result;
670 ses->underflow = scmd->underflow;
670 ses->prot_op = scmd->prot_op; 671 ses->prot_op = scmd->prot_op;
671 672
672 scmd->prot_op = SCSI_PROT_NORMAL; 673 scmd->prot_op = SCSI_PROT_NORMAL;
@@ -727,6 +728,7 @@ void scsi_eh_restore_cmnd(struct scsi_cmnd* scmd, struct scsi_eh_save *ses)
727 scmd->sdb = ses->sdb; 728 scmd->sdb = ses->sdb;
728 scmd->request->next_rq = ses->next_rq; 729 scmd->request->next_rq = ses->next_rq;
729 scmd->result = ses->result; 730 scmd->result = ses->result;
731 scmd->underflow = ses->underflow;
730 scmd->prot_op = ses->prot_op; 732 scmd->prot_op = ses->prot_op;
731} 733}
732EXPORT_SYMBOL(scsi_eh_restore_cmnd); 734EXPORT_SYMBOL(scsi_eh_restore_cmnd);
diff --git a/include/scsi/scsi_eh.h b/include/scsi/scsi_eh.h
index e5499ed0e376..06a8790893ef 100644
--- a/include/scsi/scsi_eh.h
+++ b/include/scsi/scsi_eh.h
@@ -74,6 +74,7 @@ struct scsi_eh_save {
74 /* saved state */ 74 /* saved state */
75 int result; 75 int result;
76 enum dma_data_direction data_direction; 76 enum dma_data_direction data_direction;
77 unsigned underflow;
77 unsigned char cmd_len; 78 unsigned char cmd_len;
78 unsigned char prot_op; 79 unsigned char prot_op;
79 unsigned char *cmnd; 80 unsigned char *cmnd;