* + lib-scatterlist-avoid-a-double-memset.patch added to -mm tree
@ 2020-09-22 19:52 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2020-09-22 19:52 UTC (permalink / raw)
To: mm-commits, christophe.jaillet
The patch titled
Subject: lib/scatterlist.c: avoid a double memset
has been added to the -mm tree. Its filename is
lib-scatterlist-avoid-a-double-memset.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/lib-scatterlist-avoid-a-double-memset.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/lib-scatterlist-avoid-a-double-memset.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***
The -mm tree is included into linux-next and is updated
there every 3-4 working days
------------------------------------------------------
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Subject: lib/scatterlist.c: avoid a double memset
'sgl' is zeroed a few lines below in 'sg_init_table()'. There is no need to
clear it twice.
Remove the redundant initialization.
Link: https://lkml.kernel.org/r/20200920071544.368841-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/scatterlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/lib/scatterlist.c~lib-scatterlist-avoid-a-double-memset
+++ a/lib/scatterlist.c
@@ -504,7 +504,7 @@ struct scatterlist *sgl_alloc_order(unsi
nalloc++;
}
sgl = kmalloc_array(nalloc, sizeof(struct scatterlist),
- (gfp & ~GFP_DMA) | __GFP_ZERO);
+ gfp & ~GFP_DMA);
if (!sgl)
return NULL;
_
Patches currently in -mm which might be from christophe.jaillet@wanadoo.fr are
lib-scatterlist-avoid-a-double-memset.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-22 19:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 19:52 + lib-scatterlist-avoid-a-double-memset.patch added to -mm tree akpm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).