diff options
-rw-r--r-- | arch/cris/arch-v32/drivers/pci/dma.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/pci-dma.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/cris/arch-v32/drivers/pci/dma.c b/arch/cris/arch-v32/drivers/pci/dma.c index 426b09878a05..70d3bf0c92e8 100644 --- a/arch/cris/arch-v32/drivers/pci/dma.c +++ b/arch/cris/arch-v32/drivers/pci/dma.c | |||
@@ -111,7 +111,7 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
111 | return DMA_MEMORY_IO; | 111 | return DMA_MEMORY_IO; |
112 | 112 | ||
113 | free1_out: | 113 | free1_out: |
114 | kfree(dev->dma_mem->bitmap); | 114 | kfree(dev->dma_mem); |
115 | out: | 115 | out: |
116 | return 0; | 116 | return 0; |
117 | } | 117 | } |
diff --git a/arch/i386/kernel/pci-dma.c b/arch/i386/kernel/pci-dma.c index 41af692c1584..3ebcea033623 100644 --- a/arch/i386/kernel/pci-dma.c +++ b/arch/i386/kernel/pci-dma.c | |||
@@ -110,7 +110,7 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
110 | return DMA_MEMORY_IO; | 110 | return DMA_MEMORY_IO; |
111 | 111 | ||
112 | free1_out: | 112 | free1_out: |
113 | kfree(dev->dma_mem->bitmap); | 113 | kfree(dev->dma_mem); |
114 | out: | 114 | out: |
115 | if (mem_base) | 115 | if (mem_base) |
116 | iounmap(mem_base); | 116 | iounmap(mem_base); |