Commit:     58e690e6fd47a682b49aed3510443d6797a03021
Parent:     ff990d5952712c2e163b355946c39278da8407a8
Author:     Avi Kivity <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 26 16:29:43 2007 +0200
Committer:  Avi Kivity <[EMAIL PROTECTED]>
CommitDate: Sun Mar 4 11:12:43 2007 +0200

    KVM: Fix bogus failure in kvm.ko module initialization
    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 <[EMAIL PROTECTED]> (?) for reporting
    the problem and for providing access to a machine which exhibited it.
    Signed-off-by: Avi Kivity <[EMAIL PROTECTED]>
 drivers/kvm/kvm_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index e48b4d7..ca82ba3 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -2540,7 +2540,7 @@ static __init int kvm_init(void)
        bad_page_address = page_to_pfn(bad_page) << PAGE_SHIFT;
        memset(__va(bad_page_address), 0, PAGE_SIZE);
-       return r;
+       return 0;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to