diff options
author | wangbo <wdjjwb@163.com> | 2019-01-07 20:15:52 +0800 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2019-02-19 16:00:15 +1100 |
commit | 08434ab4694887effbdcae518f29062274871c8d (patch) | |
tree | 8d29e29ca2e732b3d847dc9ddd3de682e663befb /arch/powerpc/kvm/book3s_hv.c | |
parent | 41a8645ab1c3c37f96955fec3360e123dc06abcd (diff) | |
download | lwn-08434ab4694887effbdcae518f29062274871c8d.tar.gz lwn-08434ab4694887effbdcae518f29062274871c8d.zip |
KVM: PPC: Book3S HV: Replace kmalloc_node+memset with kzalloc_node
Replace kmalloc_node and memset with kzalloc_node
Signed-off-by: wangbo <wang.bo116@zte.com.cn>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 5a066fc299e1..27112b70aa7a 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; |