Skip to content

Commit a4cd986

Browse files
committed
firewire: ohci: fix index of pages for dma address to 1394 OHCI IT context
The index of pages for dma address was changed wrongly. This commit corrents it. Fixes: ef6bdff ("firewire: core: stop using page private to store DMA mapping address") Link: https://lore.kernel.org/r/20260114131729.16133-1-o-takashi@sakamocchi.jp Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
1 parent 993ab48 commit a4cd986

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/firewire/ohci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3272,7 +3272,7 @@ static int queue_iso_transmit(struct iso_context *ctx,
32723272
min(next_page_index, payload_end_index) - payload_index;
32733273
pd[i].req_count = cpu_to_le16(length);
32743274

3275-
dma_addr_t dma_addr = buffer->dma_addrs[i];
3275+
dma_addr_t dma_addr = buffer->dma_addrs[page];
32763276
pd[i].data_address = cpu_to_le32(dma_addr + offset);
32773277

32783278
dma_sync_single_range_for_device(ctx->context.ohci->card.device,

0 commit comments

Comments
 (0)