]> Pileus Git - ~andy/linux/blobdiff - mm/slab_common.c
mm/sl[au]b: correct allocation type check in kmalloc_slab()
[~andy/linux] / mm / slab_common.c
index 6d73f0b7f21c07ae82d091014a9a828091aa9112..2f0e7d5976cb9d47d6e91566c2668715eeee04fc 100644 (file)
@@ -382,7 +382,7 @@ struct kmem_cache *kmalloc_slab(size_t size, gfp_t flags)
                index = fls(size - 1);
 
 #ifdef CONFIG_ZONE_DMA
-       if (unlikely((flags & SLAB_CACHE_DMA)))
+       if (unlikely((flags & GFP_DMA)))
                return kmalloc_dma_caches[index];
 
 #endif