• Avi Kivity's avatar
    KVM: Fix bogus failure in kvm.ko module initialization · 58e690e6
    Avi Kivity authored
    A bogus 'return r' can cause an otherwise successful module load to fail.
    This both denies users the use of kvm, and it also denies them the use of
    their machine, as it leaves a filesystem registered with its callbacks
    pointing into now-freed module memory.
    
    Fix by returning a zero like a good module.
    
    Thanks to Richard Lucassen <mailinglists@lucassen.org> (?) for reporting
    the problem and for providing access to a machine which exhibited it.
    Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
    58e690e6
kvm_main.c 56 KB