summaryrefslogtreecommitdiff
path: root/virt/kvm/vfio.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2016-02-23 14:36:01 (GMT)
committerPaolo Bonzini <pbonzini@redhat.com>2016-03-04 11:35:20 (GMT)
commitb2740d3533a3f4aeb9553e872ce471ff73200a7f (patch)
tree6b24a81ae92244539c9ff8cc9f0078a5f6c88f0b /virt/kvm/vfio.h
parent107d44a2c5bf08f221cb406b776310f12084e4de (diff)
downloadlinux-b2740d3533a3f4aeb9553e872ce471ff73200a7f.tar.xz
KVM: ensure __gfn_to_pfn_memslot initializes *writable
For the kvm_is_error_hva, ubsan complains if the uninitialized writable is passed to __direct_map, even though the value itself is not used (__direct_map goes to mmu_set_spte->set_spte->set_mmio_spte but never looks at that argument). Ensuring that __gfn_to_pfn_memslot initializes *writable is cheap and avoids this kind of issue. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/vfio.h')
0 files changed, 0 insertions, 0 deletions