Re: [PATCH] powerpc/mce: fix off by one errors in mce event handling

2015-05-11 Thread Mahesh J Salgaonkar
On 2015-05-11 10:48:32 Mon, Daniel Axtens wrote: > Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in > save_mce_event, index got the value of mce_nest_count, and > mce_nest_count was incremented *after* index was set. > > However, that patch changed the behaviour so that mce_nest cou

[PATCH] powerpc/mce: fix off by one errors in mce event handling

2015-05-10 Thread Daniel Axtens
Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in save_mce_event, index got the value of mce_nest_count, and mce_nest_count was incremented *after* index was set. However, that patch changed the behaviour so that mce_nest count was incremented *before* setting index. This causes an