Skip to content

Commit 9cf601e

Browse files
committed
Merge tag 'dma-mapping-6.11-2024-07-24' of git://git.infradead.org/users/hch/dma-mapping
Pull dma-mapping fix from Christoph Hellwig: - fix the order of actions in dmam_free_coherent (Lance Richardson) * tag 'dma-mapping-6.11-2024-07-24' of git://git.infradead.org/users/hch/dma-mapping: dma: fix call order in dmam_free_coherent
2 parents c33ffdb + 28e8b74 commit 9cf601e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/dma/mapping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ void dmam_free_coherent(struct device *dev, size_t size, void *vaddr,
6767
{
6868
struct dma_devres match_data = { size, vaddr, dma_handle };
6969

70-
dma_free_coherent(dev, size, vaddr, dma_handle);
7170
WARN_ON(devres_destroy(dev, dmam_release, dmam_match, &match_data));
71+
dma_free_coherent(dev, size, vaddr, dma_handle);
7272
}
7373
EXPORT_SYMBOL(dmam_free_coherent);
7474

0 commit comments

Comments
 (0)