Skip to content
Commit 95f1a128 authored by Wang Yufen's avatar Wang Yufen Committed by Michael Ellerman
Browse files

powerpc/pseries: fix potential memory leak in init_cpu_associativity()



If the vcpu_associativity alloc memory successfully but the
pcpu_associativity fails to alloc memory, the vcpu_associativity
memory leaks.

Fixes: d62c8dee ("powerpc/pseries: Provide vcpu dispatch statistics")
Signed-off-by: default avatarWang Yufen <wangyufen@huawei.com>
Reviewed-by: default avatar"Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/1671003983-10794-1-git-send-email-wangyufen@huawei.com
parent 007240d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment