Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[~shefty/rdma-dev.git] / arch / x86 / kernel / cpu / mcheck / mce.c
index c614bd4de0f36b4dad96a3a60418e2751f77f0f2..d086a09c087d7fa3cf8d1ee3f20176623b1df9f6 100644 (file)
@@ -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;