firewire: fw-sbp2: fix DMA mapping of S/G tables
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 2 Jul 2007 20:07:34 +0000 (22:07 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Mon, 9 Jul 2007 22:07:48 +0000 (00:07 +0200)
commitb4be016ad81af5a83f0be820edf106de883e6ade
treef15e6577aee7b098ba52bb3f8dfeaa2af61c3716
parent332ef3310bc37ff29fd4382d6dfb38a787078091
firewire: fw-sbp2: fix DMA mapping of S/G tables

  - The CPU must not touch the buffer after it was DMA-mapped.
  - The size argument of dma_unmap_single(...page_table...) was bogus.
  - Move a comment closer to the code to which it refers to.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
drivers/firewire/fw-sbp2.c