Skip to contentSkip to conversation

Add x86 implementation of dma_declare_coherent_memory

DISCUSSION Jeff Garzik 1 participant 1 message Aug 29, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Review

Quoted 11 lines · Linux Kernel Mailing List
(quoted diff) +11 -0
+void dma_release_declared_memory(struct device *dev)
+{
+	struct dma_coherent_mem *mem = dev->dma_mem;
+	
+	if(!mem)
+		return;
+	dev->dma_mem = NULL;
+	kfree(mem->bitmap);
+	kfree(mem);
+}
+EXPORT_SYMBOL(dma_release_declared_memory);

There seems to be an iounmap() call missing.

Or is it me who is missing something? :)

Jeff