Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291787
b: refs/heads/master
c: 496cda8
h: refs/heads/master
i:
  291785: c305fe8
  291783: 503d0b2
v: v3
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent 3fd51ac commit c6f0c4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f0dfc0b0b7f3d961da8a98bcfccc8be9107a848b
refs/heads/master: 496cda8e75d90301cb1e6bbebea643c6bac1e6d6
8 changes: 4 additions & 4 deletions trunk/drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,13 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)

/* FIXME: use a bounce buffer */
local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0);
buf = kmap_atomic(page);

/* do the actual data transfer */
ap->ops->sff_data_xfer(qc->dev, buf + offset, qc->sect_size,
do_write);

kunmap_atomic(buf, KM_IRQ0);
kunmap_atomic(buf);
local_irq_restore(flags);
} else {
buf = page_address(page);
Expand Down Expand Up @@ -865,13 +865,13 @@ static int __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes)

/* FIXME: use bounce buffer */
local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0);
buf = kmap_atomic(page);

/* do the actual data transfer */
consumed = ap->ops->sff_data_xfer(dev, buf + offset,
count, rw);

kunmap_atomic(buf, KM_IRQ0);
kunmap_atomic(buf);
local_irq_restore(flags);
} else {
buf = page_address(page);
Expand Down

0 comments on commit c6f0c4d

Please sign in to comment.