diff options
Diffstat (limited to 'drivers/scsi/arcmsr/arcmsr_hba.c')
-rw-r--r-- | drivers/scsi/arcmsr/arcmsr_hba.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c index f980600f78a8..2fe9e90e53d9 100644 --- a/drivers/scsi/arcmsr/arcmsr_hba.c +++ b/drivers/scsi/arcmsr/arcmsr_hba.c | |||
@@ -1736,7 +1736,7 @@ static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb, | |||
1736 | (uint32_t ) cmd->cmnd[8]; | 1736 | (uint32_t ) cmd->cmnd[8]; |
1737 | /* 4 bytes: Areca io control code */ | 1737 | /* 4 bytes: Areca io control code */ |
1738 | sg = scsi_sglist(cmd); | 1738 | sg = scsi_sglist(cmd); |
1739 | buffer = kmap_atomic(sg_page(sg), KM_IRQ0) + sg->offset; | 1739 | buffer = kmap_atomic(sg_page(sg)) + sg->offset; |
1740 | if (scsi_sg_count(cmd) > 1) { | 1740 | if (scsi_sg_count(cmd) > 1) { |
1741 | retvalue = ARCMSR_MESSAGE_FAIL; | 1741 | retvalue = ARCMSR_MESSAGE_FAIL; |
1742 | goto message_out; | 1742 | goto message_out; |
@@ -1985,7 +1985,7 @@ static int arcmsr_iop_message_xfer(struct AdapterControlBlock *acb, | |||
1985 | } | 1985 | } |
1986 | message_out: | 1986 | message_out: |
1987 | sg = scsi_sglist(cmd); | 1987 | sg = scsi_sglist(cmd); |
1988 | kunmap_atomic(buffer - sg->offset, KM_IRQ0); | 1988 | kunmap_atomic(buffer - sg->offset); |
1989 | return retvalue; | 1989 | return retvalue; |
1990 | } | 1990 | } |
1991 | 1991 | ||
@@ -2035,11 +2035,11 @@ static void arcmsr_handle_virtual_command(struct AdapterControlBlock *acb, | |||
2035 | strncpy(&inqdata[32], "R001", 4); /* Product Revision */ | 2035 | strncpy(&inqdata[32], "R001", 4); /* Product Revision */ |
2036 | 2036 | ||
2037 | sg = scsi_sglist(cmd); | 2037 | sg = scsi_sglist(cmd); |
2038 | buffer = kmap_atomic(sg_page(sg), KM_IRQ0) + sg->offset; | 2038 | buffer = kmap_atomic(sg_page(sg)) + sg->offset; |
2039 | 2039 | ||
2040 | memcpy(buffer, inqdata, sizeof(inqdata)); | 2040 | memcpy(buffer, inqdata, sizeof(inqdata)); |
2041 | sg = scsi_sglist(cmd); | 2041 | sg = scsi_sglist(cmd); |
2042 | kunmap_atomic(buffer - sg->offset, KM_IRQ0); | 2042 | kunmap_atomic(buffer - sg->offset); |
2043 | 2043 | ||
2044 | cmd->scsi_done(cmd); | 2044 | cmd->scsi_done(cmd); |
2045 | } | 2045 | } |