diff options
author | Sergey Senozhatsky <[email protected]> | 2010-08-20 10:36:34 +0300 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2010-08-20 19:56:00 -0700 |
commit | 51e3c1b558b31b11bf5fc66d3c6f5adacf3573f7 (patch) | |
tree | 546a9fb1ce564927e8a3e7929333fc477defbe37 /net/unix/sysctl_net_unix.c | |
parent | 36423a5ed5e4ea95ceedb68fad52965033e11639 (diff) |
x86, hwmon: Fix unsafe smp_processor_id() in thermal_throttle_add_dev
Fix BUG: using smp_processor_id() in preemptible thermal_throttle_add_dev.
We know the cpu number when calling thermal_throttle_add_dev, so we can
remove smp_processor_id call in thermal_throttle_add_dev by supplying
the cpu number as argument.
This should resolve kernel bugzilla 16615/16629.
Signed-off-by: Sergey Senozhatsky <[email protected]>
LKML-Reference: <[email protected]>
Cc: Fenghua Yu <[email protected]>
Cc: Joerg Roedel <[email protected]>
Cc: Maciej Rutecki <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions