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

2015-05-12 Thread Michael Ellerman
On Tue, 2015-05-12 at 13:23 +1000, 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_n

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

2015-05-11 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