Re: [PATCH][next] KVM: SVM: nested: fix free of uninitialized pointers save and ctl

2020-09-11 Thread Sean Christopherson
+Joerg On Fri, Sep 11, 2020 at 01:49:42PM +0200, Vitaly Kuznetsov wrote: > Colin King writes: > > > From: Colin Ian King > > > > Currently the error exit path to outt_set_gif will kfree on > > uninitialized > > typo: out_set_gif > > > pointers save and ctl. Fix this by ensuring these pointer

Re: [PATCH][next] KVM: SVM: nested: fix free of uninitialized pointers save and ctl

2020-09-11 Thread Vitaly Kuznetsov
Colin King writes: > From: Colin Ian King > > Currently the error exit path to outt_set_gif will kfree on > uninitialized typo: out_set_gif > pointers save and ctl. Fix this by ensuring these pointers are > inintialized to NULL to avoid garbage pointer freeing. > > Addresses-Coverity: ("Unini

[PATCH][next] KVM: SVM: nested: fix free of uninitialized pointers save and ctl

2020-09-11 Thread Colin King
From: Colin Ian King Currently the error exit path to outt_set_gif will kfree on uninitialized pointers save and ctl. Fix this by ensuring these pointers are inintialized to NULL to avoid garbage pointer freeing. Addresses-Coverity: ("Uninitialized pointer read") Fixes: 6ccbd29ade0d ("KVM: SVM: