]> xenbits.xensource.com Git - xen.git/commitdiff
mce: Fix mcheck_mca_logout to increase errcnt when valid entry found.
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 14 May 2010 06:52:24 +0000 (07:52 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 14 May 2010 06:52:24 +0000 (07:52 +0100)
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
xen/arch/x86/cpu/mcheck/mce.c

index cf0ca5fec42069e78c4c9f142dc0ca389bb0e734..efbf2d2c4427f860208d6696b1d6c6b94a4e65a7 100644 (file)
@@ -282,7 +282,7 @@ mctelem_cookie_t mcheck_mca_logout(enum mca_source who, cpu_banks_t bankmask,
                 * 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);