Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

+1 -1
+1 -1
drivers/firewire/ohci.c
··· 3272 3272 min(next_page_index, payload_end_index) - payload_index; 3273 3273 pd[i].req_count = cpu_to_le16(length); 3274 3274 3275 - dma_addr_t dma_addr = buffer->dma_addrs[i]; 3275 + dma_addr_t dma_addr = buffer->dma_addrs[page]; 3276 3276 pd[i].data_address = cpu_to_le32(dma_addr + offset); 3277 3277 3278 3278 dma_sync_single_range_for_device(ctx->context.ohci->card.device,