* [PATCH] KVM: PPC: Book3S: Replace kmalloc_node+memset with kzalloc_node
@ 2019-01-07 12:15 wangbo
2019-02-22 9:38 ` Paul Mackerras
0 siblings, 1 reply; 2+ messages in thread
From: wangbo @ 2019-01-07 12:15 UTC (permalink / raw)
To: linux-kernel; +Cc: paulus, kvm-ppc, wang.bo116
Replace kmalloc_node and memset with kzalloc_node
Signed-off-by: wangbo <wang.bo116@zte.com.cn>
---
arch/powerpc/kvm/book3s_hv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
index 5a066fc..27112b7 100644
--- a/arch/powerpc/kvm/book3s_hv.c
+++ b/arch/powerpc/kvm/book3s_hv.c
@@ -5342,13 +5342,11 @@ static int kvm_init_subcore_bitmap(void)
continue;
sibling_subcore_state =
- kmalloc_node(sizeof(struct sibling_subcore_state),
+ kzalloc_node(sizeof(struct sibling_subcore_state),
GFP_KERNEL, node);
if (!sibling_subcore_state)
return -ENOMEM;
- memset(sibling_subcore_state, 0,
- sizeof(struct sibling_subcore_state));
for (j = 0; j < threads_per_core; j++) {
int cpu = first_cpu + j;
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: PPC: Book3S: Replace kmalloc_node+memset with kzalloc_node
2019-01-07 12:15 [PATCH] KVM: PPC: Book3S: Replace kmalloc_node+memset with kzalloc_node wangbo
@ 2019-02-22 9:38 ` Paul Mackerras
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2019-02-22 9:38 UTC (permalink / raw)
To: wangbo; +Cc: linux-kernel, kvm-ppc, wang.bo116
On Mon, Jan 07, 2019 at 08:15:52PM +0800, wangbo wrote:
> Replace kmalloc_node and memset with kzalloc_node
>
> Signed-off-by: wangbo <wang.bo116@zte.com.cn>
Thanks, applied to my kvm-ppc-next tree.
Paul.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-02-22 9:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-07 12:15 [PATCH] KVM: PPC: Book3S: Replace kmalloc_node+memset with kzalloc_node wangbo
2019-02-22 9:38 ` Paul Mackerras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox