]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firewire: ohci: fix index of pages for dma address to 1394 OHCI IT context
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 14 Jan 2026 13:17:29 +0000 (22:17 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 15 Jan 2026 12:33:36 +0000 (21:33 +0900)
The index of pages for dma address was changed wrongly. This commit
corrents it.

Fixes: ef6bdffbb88d ("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>
drivers/firewire/ohci.c

index a43fe680d50801570b97947f28e12b8b1fd09251..339047a2e768cdde627645bdb9a9aa25c3fbb76c 100644 (file)
@@ -3272,7 +3272,7 @@ static int queue_iso_transmit(struct iso_context *ctx,
                        min(next_page_index, payload_end_index) - payload_index;
                pd[i].req_count    = cpu_to_le16(length);
 
-               dma_addr_t dma_addr = buffer->dma_addrs[i];
+               dma_addr_t dma_addr = buffer->dma_addrs[page];
                pd[i].data_address = cpu_to_le32(dma_addr + offset);
 
                dma_sync_single_range_for_device(ctx->context.ohci->card.device,