diff options
Diffstat (limited to 'drivers/scsi/in2000.c')
-rw-r--r-- | drivers/scsi/in2000.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/in2000.c b/drivers/scsi/in2000.c index 9c519876f8a0..883bc92b4d9a 100644 --- a/drivers/scsi/in2000.c +++ b/drivers/scsi/in2000.c | |||
@@ -370,7 +370,7 @@ static int in2000_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) | |||
370 | */ | 370 | */ |
371 | 371 | ||
372 | if (cmd->use_sg) { | 372 | if (cmd->use_sg) { |
373 | cmd->SCp.buffer = (struct scatterlist *) cmd->buffer; | 373 | cmd->SCp.buffer = (struct scatterlist *) cmd->request_buffer; |
374 | cmd->SCp.buffers_residual = cmd->use_sg - 1; | 374 | cmd->SCp.buffers_residual = cmd->use_sg - 1; |
375 | cmd->SCp.ptr = (char *) page_address(cmd->SCp.buffer->page) + cmd->SCp.buffer->offset; | 375 | cmd->SCp.ptr = (char *) page_address(cmd->SCp.buffer->page) + cmd->SCp.buffer->offset; |
376 | cmd->SCp.this_residual = cmd->SCp.buffer->length; | 376 | cmd->SCp.this_residual = cmd->SCp.buffer->length; |
@@ -1809,7 +1809,7 @@ static int in2000_abort(Scsi_Cmnd * cmd) | |||
1809 | 1809 | ||
1810 | 1810 | ||
1811 | #define MAX_IN2000_HOSTS 3 | 1811 | #define MAX_IN2000_HOSTS 3 |
1812 | #define MAX_SETUP_ARGS (sizeof(setup_args) / sizeof(char *)) | 1812 | #define MAX_SETUP_ARGS ARRAY_SIZE(setup_args) |
1813 | #define SETUP_BUFFER_SIZE 200 | 1813 | #define SETUP_BUFFER_SIZE 200 |
1814 | static char setup_buffer[SETUP_BUFFER_SIZE]; | 1814 | static char setup_buffer[SETUP_BUFFER_SIZE]; |
1815 | static char setup_used[MAX_SETUP_ARGS]; | 1815 | static char setup_used[MAX_SETUP_ARGS]; |