scatterlist: mask out GFP_DMA32 flag when call kmalloc on spacemit k1x platform

Change-Id: I33222f2906558d36593d26f22c488ac42d34ec56
This commit is contained in:
Pan Junzhong
2024-02-22 11:53:23 +08:00
committed by zhangmeng
parent 4a8df0b1e4
commit 68c71618b6

View File

@@ -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;