scatterlist: mask out GFP_DMA32 flag when call kmalloc on spacemit k1x platform
Change-Id: I33222f2906558d36593d26f22c488ac42d34ec56
This commit is contained in:
@@ -629,7 +629,11 @@ struct scatterlist *sgl_alloc_order(unsigned long long length,
|
||||
nalloc++;
|
||||
}
|
||||
sgl = kmalloc_array(nalloc, sizeof(struct scatterlist),
|
||||
#if defined(CONFIG_SOC_SPACEMIT_K1X)
|
||||
gfp & ~(GFP_DMA | GFP_DMA32));
|
||||
#else
|
||||
gfp & ~GFP_DMA);
|
||||
#endif
|
||||
if (!sgl)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user