diff options
Diffstat (limited to 'drivers/scsi/scsi_error.c')
-rw-r--r-- | drivers/scsi/scsi_error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 28a266c804b..3963e7013bd 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c | |||
@@ -725,7 +725,7 @@ static int scsi_send_eh_cmnd(struct scsi_cmnd *scmd, unsigned char *cmnd, | |||
725 | */ | 725 | */ |
726 | if (copy_sense) { | 726 | if (copy_sense) { |
727 | if (!SCSI_SENSE_VALID(scmd)) { | 727 | if (!SCSI_SENSE_VALID(scmd)) { |
728 | memcpy(scmd->sense_buffer, scmd->request_buffer, | 728 | memcpy(scmd->sense_buffer, page_address(sgl.page), |
729 | sizeof(scmd->sense_buffer)); | 729 | sizeof(scmd->sense_buffer)); |
730 | } | 730 | } |
731 | __free_page(sgl.page); | 731 | __free_page(sgl.page); |