mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
firewire: core: fix DMA unmapping in iso buffer removal
dmap_unmap_page() shall use the same direction as dma_map_page(). Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
This commit is contained in:
parent
1337f8535a
commit
29ad14cddd
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ int fw_iso_buffer_init(struct fw_iso_buffer *buffer, struct fw_card *card,
|
|||
for (j = 0; j < i; j++) {
|
||||
address = page_private(buffer->pages[j]);
|
||||
dma_unmap_page(card->device, address,
|
||||
PAGE_SIZE, DMA_TO_DEVICE);
|
||||
PAGE_SIZE, direction);
|
||||
__free_page(buffer->pages[j]);
|
||||
}
|
||||
kfree(buffer->pages);
|
||||
|
@ -108,7 +108,7 @@ void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer,
|
|||
for (i = 0; i < buffer->page_count; i++) {
|
||||
address = page_private(buffer->pages[i]);
|
||||
dma_unmap_page(card->device, address,
|
||||
PAGE_SIZE, DMA_TO_DEVICE);
|
||||
PAGE_SIZE, buffer->direction);
|
||||
__free_page(buffer->pages[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue