97821c04a8
Fix RCU usage during cpu idle (rhbz 789641) Fix mce rcu splat (rhbz 789644)
15 lines
400 B
Diff
15 lines
400 B
Diff
diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
|
|
index f22a9f7..f525f99 100644
|
|
--- a/arch/x86/kernel/cpu/mcheck/mce.c
|
|
+++ b/arch/x86/kernel/cpu/mcheck/mce.c
|
|
@@ -191,7 +191,7 @@ static void drain_mcelog_buffer(void)
|
|
{
|
|
unsigned int next, i, prev = 0;
|
|
|
|
- next = rcu_dereference_check_mce(mcelog.next);
|
|
+ next = ACCESS_ONCE(mcelog.next);
|
|
|
|
do {
|
|
struct mce *m;
|
|
|
|
|