projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
swiotlb: fix inversed DMA_ATTR_NO_WARN test
[linux-2.6-microblaze.git]
/
lib
/
dma-direct.c
diff --git
a/lib/dma-direct.c
b/lib/dma-direct.c
index
c0bba30
..
bbfb229
100644
(file)
--- a/
lib/dma-direct.c
+++ b/
lib/dma-direct.c
@@
-84,7
+84,8
@@
again:
__free_pages(page, page_order);
page = NULL;
- if (dev->coherent_dma_mask < DMA_BIT_MASK(32) &&
+ if (IS_ENABLED(CONFIG_ZONE_DMA) &&
+ dev->coherent_dma_mask < DMA_BIT_MASK(32) &&
!(gfp & GFP_DMA)) {
gfp = (gfp & ~GFP_DMA32) | GFP_DMA;
goto again;