diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-12-13 05:51:01 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-13 05:51:01 +0100 |
commit | 575ab52a218e4ff0667a6cbd972c3af443ee8713 (patch) | |
tree | 047730477e31fe7f0551d25c5454e299926b6500 /drivers/scsi/libata-core.c | |
parent | [PATCH] libata: ata_piix 450NX errata (diff) | |
parent | [PATCH] libata-core.c: fix parameter bug on kunmap_atomic() calls (diff) | |
download | linux-575ab52a218e4ff0667a6cbd972c3af443ee8713.tar.xz linux-575ab52a218e4ff0667a6cbd972c3af443ee8713.zip |
Merge branch 'upstream-fixes'
Diffstat (limited to 'drivers/scsi/libata-core.c')
-rw-r--r-- | drivers/scsi/libata-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index e4c400756b23..a0060cf31e0d 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -2456,7 +2456,7 @@ static void ata_sg_clean(struct ata_queued_cmd *qc) struct scatterlist *psg = &qc->pad_sgent; void *addr = kmap_atomic(psg->page, KM_IRQ0); memcpy(addr + psg->offset, pad_buf, qc->pad_len); - kunmap_atomic(psg->page, KM_IRQ0); + kunmap_atomic(addr, KM_IRQ0); } } else { if (sg_dma_len(&sg[0]) > 0) @@ -2730,7 +2730,7 @@ static int ata_sg_setup(struct ata_queued_cmd *qc) if (qc->tf.flags & ATA_TFLAG_WRITE) { void *addr = kmap_atomic(psg->page, KM_IRQ0); memcpy(pad_buf, addr + psg->offset, qc->pad_len); - kunmap_atomic(psg->page, KM_IRQ0); + kunmap_atomic(addr, KM_IRQ0); } sg_dma_address(psg) = ap->pad_dma + (qc->tag * ATA_DMA_PAD_SZ); |