diff options
Diffstat (limited to 'drivers/scsi/megaraid.c')
-rw-r--r-- | drivers/scsi/megaraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 80b68a2481b3..d245717fee65 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -524,7 +524,7 @@ mega_build_cmd(adapter_t *adapter, Scsi_Cmnd *cmd, int *busy) | |||
524 | * filter the internal and ioctl commands | 524 | * filter the internal and ioctl commands |
525 | */ | 525 | */ |
526 | if((cmd->cmnd[0] == MEGA_INTERNAL_CMD)) { | 526 | if((cmd->cmnd[0] == MEGA_INTERNAL_CMD)) { |
527 | return cmd->buffer; | 527 | return cmd->request_buffer; |
528 | } | 528 | } |
529 | 529 | ||
530 | 530 | ||
@@ -4493,7 +4493,7 @@ mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) | |||
4493 | scmd->device = sdev; | 4493 | scmd->device = sdev; |
4494 | 4494 | ||
4495 | scmd->device->host = adapter->host; | 4495 | scmd->device->host = adapter->host; |
4496 | scmd->buffer = (void *)scb; | 4496 | scmd->request_buffer = (void *)scb; |
4497 | scmd->cmnd[0] = MEGA_INTERNAL_CMD; | 4497 | scmd->cmnd[0] = MEGA_INTERNAL_CMD; |
4498 | 4498 | ||
4499 | scb->state |= SCB_ACTIVE; | 4499 | scb->state |= SCB_ACTIVE; |