https://github.com/torvalds/linux
Revision 89a3fd35ba0318a7208e2c8d8ca6189f567d4a93 authored by Jan Beulich on 13 September 2010, 10:05:51 UTC, committed by Guenter Roeck on 24 September 2010, 18:44:18 UTC
In commit 0dca94baeab4a1a514841b0a4c8e3a51dfb4d5ae the call to
platform_driver_unregister() was made conditional upon !HOTPLUG_CPU,
but the return value from coretemp_init() was left to indicate an
error. This isn't correct, as the negative return value indicates to
the module loader that initialization failed, which isn't intended
here and results in dangling pointers.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Cc: Chen Gong <gong.chen@linux.intel.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
1 parent f7c77a3
History
Tip revision: 89a3fd35ba0318a7208e2c8d8ca6189f567d4a93 authored by Jan Beulich on 13 September 2010, 10:05:51 UTC
x86/hwmon: fix module init for hotplug-but-no-device-found case
Tip revision: 89a3fd3
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 173.5 KB
Makefile -rw-r--r-- 50.5 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top