[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] mce: Fix mcheck_mca_logout to increase errcnt when valid entry found.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1273819944 -3600
# Node ID 9b9a277d8a51de049068d3251b5d84b73a24196b
# Parent  9d53864d7be6d4f95b679fe0b2ef4ab898a81049
mce: Fix mcheck_mca_logout to increase errcnt when valid entry found.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
---
 xen/arch/x86/cpu/mcheck/mce.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 9d53864d7be6 -r 9b9a277d8a51 xen/arch/x86/cpu/mcheck/mce.c
--- a/xen/arch/x86/cpu/mcheck/mce.c     Thu May 13 12:21:16 2010 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce.c     Fri May 14 07:52:24 2010 +0100
@@ -282,7 +282,7 @@ mctelem_cookie_t mcheck_mca_logout(enum 
                 * depending on whethere we are called from an exception or
                 * a poller;  this can fail (for example dom0 may not
                 * yet have consumed past telemetry). */
-               if (errcnt == 0) {
+               if (errcnt++ == 0) {
                        if ( (mctc = mctelem_reserve(which)) != NULL ) {
                                mci = mctelem_dataptr(mctc);
                                mcinfo_clear(mci);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.