aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/kvm.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-04-30 18:03:03 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2021-05-03 11:25:40 -0400
commit8899a5fc7da516460f841189a28aac0b52b554fd (patch)
treef216b9cbf7ddc89a3bdccbf6fe14006d70ee34ad /arch/x86/kernel/kvm.c
parentKVM: x86/mmu: Fix kdoc of __handle_changed_spte (diff)
downloadlinux-dev-8899a5fc7da516460f841189a28aac0b52b554fd.tar.xz
linux-dev-8899a5fc7da516460f841189a28aac0b52b554fd.zip
KVM: x86: Fix potential fput on a null source_kvm_file
The fget can potentially return null, so the fput on the error return path can cause a null pointer dereference. Fix this by checking for a null source_kvm_file before doing a fput. Addresses-Coverity: ("Dereference null return") Fixes: 54526d1fd593 ("KVM: x86: Support KVM VMs sharing SEV context") Signed-off-by: Colin Ian King <colin.king@canonical.com> Message-Id: <20210430170303.131924-1-colin.king@canonical.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kernel/kvm.c')
0 files changed, 0 insertions, 0 deletions