VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christophe JAILLET <christophe.jaillet@wanadoo.fr> 2020-10-15 20:11:25 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-10-16 11:11:20 -0700 commit: 6ed9b92e290b530197c2dda2271f5312abc475e6 parent: 3264ceec8f17a99a3895de7de06b4d7e9c8f3f30
Commit Summary:
lib/scatterlist.c: avoid a double memset
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/lib/scatterlist.c b/lib/scatterlist.c
index 5d63a8857f36..d94628fa3349 100644
--- a/lib/scatterlist.c
+++ b/lib/scatterlist.c
@@ -504,7 +504,7 @@ struct scatterlist *sgl_alloc_order(unsigned long long length,
 		nalloc++;
 	}
 	sgl = kmalloc_array(nalloc, sizeof(struct scatterlist),
-			    (gfp & ~GFP_DMA) | __GFP_ZERO);
+			    gfp & ~GFP_DMA);
 	if (!sgl)
 		return NULL;