Jiang, Yunhong
2010-May-12 07:55 UTC
[Xen-devel] [PATCH] Increase the errcnt when valid mce entry found
Fix to mcheck_mca_logout to increase the errcnt when valid entry found. Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com> diff -r bbf009817ffb xen/arch/x86/cpu/mcheck/mce.c --- a/xen/arch/x86/cpu/mcheck/mce.c Fri May 07 19:22:28 2010 +0100 +++ b/xen/arch/x86/cpu/mcheck/mce.c Wed May 12 15:42:51 2010 +0800 @@ -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-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel