Revision 58e690e6fd47a682b49aed3510443d6797a03021 authored by Avi Kivity on 26 February 2007, 14:29:43 UTC, committed by Avi Kivity on 04 March 2007, 09:12:43 UTC
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>
1 parent ff990d5
History
File Mode Size
Makefile -rw-r--r-- 282 bytes
compat.c -rw-r--r-- 16.9 KB
compat_mq.c -rw-r--r-- 4.0 KB
ipc_sysctl.c -rw-r--r-- 4.1 KB
mqueue.c -rw-r--r-- 29.8 KB
msg.c -rw-r--r-- 20.5 KB
msgutil.c -rw-r--r-- 2.3 KB
sem.c -rw-r--r-- 34.6 KB
shm.c -rw-r--r-- 25.7 KB
util.c -rw-r--r-- 19.7 KB
util.h -rw-r--r-- 3.3 KB

back to top