]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Fix bogus failure in kvm.ko module initialization
authorAvi Kivity <avi@qumranet.com>
Mon, 26 Feb 2007 14:29:43 +0000 (16:29 +0200)
committerAvi Kivity <avi@qumranet.com>
Sun, 4 Mar 2007 09:12:43 +0000 (11:12 +0200)
commitc03458b50e0bdc08b3987725f3da4afdc823b3e9
tree9859df2f04f05a8c2c470ccf18abea5ff1f51d89
parent4a596fc01cc120df129a972d4e0c117b31c81247
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 <mailinglists@lucassen.org> (?) for reporting
the problem and for providing access to a machine which exhibited it.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c