perfcounters/powerpc: fix oops with multiple counters in a group
authorPaul Mackerras <paulus@samba.org>
Thu, 5 Mar 2009 03:05:57 +0000 (14:05 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 5 Mar 2009 21:07:13 +0000 (08:07 +1100)
Impact: fix oops-causing bug

This fixes a bug in the powerpc hw_perf_counter_init where the code
didn't initialize ctrs[n] before passing the ctrs array to check_excludes,
leading to possible oopses and other incorrect behaviour.  This fixes it
by initializing ctrs[n] correctly.

Signed-off-by: Paul Mackerras <paulus@samba.org>

No differences found