KVM: fix error handling in svm_cpu_init
Hi,
Quoted 10 lines · Li RongQing
sd->save_areashould be freed in error pathFixes 70cd94e60c733 ("KVM: SVM: VMRUN should use associated ASID when SEV is enabled")Signed-off-by Li RongQing <[email protected]>Reviewed-by Brijesh Singh <[email protected]>Reviewed-by Vitaly Kuznetsov <[email protected]>---
arch/x86/kvm/svm.c| 8 +++++---1 file changed, 5 insertions(+), 3 deletions(-)
Oh, it's strange. This is already fixed in my previous patch : [PATCH v2] KVM: SVM: Fix potential memory leak in svm_cpu_init(). And Vitaly and Liran gave me Reviewed-by tags and Paolo queued it one month ago. But I can't found it in master or queue branch. There might be something wrong. :(
Quoted 25 lines
-----邮件原件-----
发件人: linmiaohe [mailto:[email protected]]
发送时间: 2020年2月20日 16:18
收件人: Li,Rongqing <[email protected]>; [email protected]; [email protected]
抄送: Liran Alon <[email protected]>; [email protected]; [email protected]; [email protected]
主题: Re: [PATCH][resend] KVM: fix error handling insvm_cpu_initHi,
Quoted 11 lines · Li RongQing
sd->save_areashould be freed in error pathFixes 70cd94e60c733 ("KVM: SVM: VMRUN should use associated ASID whenSEV is enabled")
Signed-off-by Li RongQing <[email protected]>Reviewed-by Brijesh Singh <[email protected]>Reviewed-by Vitaly Kuznetsov <[email protected]>---
arch/x86/kvm/svm.c| 8 +++++---1 file changed, 5 insertions(+), 3 deletions(-)
Quoted 5 lines
Oh, it's strange. This is already fixed in my previous patch : [PATCH v2] KVM:
SVM: Fix potential memory leak insvm_cpu_init().
And Vitaly and Liran gave me Reviewed-by tags and Paolo queued it one month ago. But I can't found it in master or queue branch. There might be something wrong. :(
In fact, I send this patch 2019/02/, and get Reviewed-by, but did not queue
https://patchwork.kernel.org/patch/10853973/
and resend it 2019/07
https://patchwork.kernel.org/patch/11032081/
-Li