diff options
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r-- | include/linux/dma-mapping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h index 75857cda38e9..728ef074602a 100644 --- a/include/linux/dma-mapping.h +++ b/include/linux/dma-mapping.h | |||
@@ -386,7 +386,7 @@ static inline void dma_free_attrs(struct device *dev, size_t size, | |||
386 | if (dma_release_from_coherent(dev, get_order(size), cpu_addr)) | 386 | if (dma_release_from_coherent(dev, get_order(size), cpu_addr)) |
387 | return; | 387 | return; |
388 | 388 | ||
389 | if (!ops->free) | 389 | if (!ops->free || !cpu_addr) |
390 | return; | 390 | return; |
391 | 391 | ||
392 | debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); | 392 | debug_dma_free_coherent(dev, size, cpu_addr, dma_handle); |