[PATCH] firewire: ohci: fix index of pages for dma address to 1394 OHCI IT context

Takashi Sakamoto posted 1 patch 3 weeks, 4 days ago
drivers/firewire/ohci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] firewire: ohci: fix index of pages for dma address to 1394 OHCI IT context
Posted by Takashi Sakamoto 3 weeks, 4 days ago
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")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
---
 drivers/firewire/ohci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
index a43fe680d508..339047a2e768 100644
--- a/drivers/firewire/ohci.c
+++ b/drivers/firewire/ohci.c
@@ -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,

base-commit: 993ab48006b3016cdd3f2b33905e8e167f955495
-- 
2.51.0
Re: [PATCH] firewire: ohci: fix index of pages for dma address to 1394 OHCI IT context
Posted by Takashi Sakamoto 3 weeks, 3 days ago
On Wed, Jan 14, 2026 at 10:17:29PM +0900, Takashi Sakamoto wrote:
> 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")
> Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
> ---
>  drivers/firewire/ohci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied to for-next branch.


Regards

Takashi Sakamoto