diff options
Diffstat (limited to 'lib/swiotlb.c')
-rw-r--r-- | lib/swiotlb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/swiotlb.c b/lib/swiotlb.c index a7381d55663a..30c1400e749e 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c | |||
@@ -497,6 +497,7 @@ void | |||
497 | swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, | 497 | swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr, |
498 | dma_addr_t dma_handle) | 498 | dma_addr_t dma_handle) |
499 | { | 499 | { |
500 | WARN_ON(irqs_disabled()); | ||
500 | if (!(vaddr >= (void *)io_tlb_start | 501 | if (!(vaddr >= (void *)io_tlb_start |
501 | && vaddr < (void *)io_tlb_end)) | 502 | && vaddr < (void *)io_tlb_end)) |
502 | free_pages((unsigned long) vaddr, get_order(size)); | 503 | free_pages((unsigned long) vaddr, get_order(size)); |