oprofile, x86: Fix overflow and warning (commit 1d12d35)
authorRobert Richter <robert.richter@amd.com>
Tue, 16 Aug 2011 21:39:53 +0000 (23:39 +0200)
committerRobert Richter <robert.richter@amd.com>
Tue, 16 Aug 2011 21:51:00 +0000 (23:51 +0200)
commit298557db42eb2d6efca81669dc369425b46c5be6
tree84b659f9875b69c092c6ae0adb25362fc42c66da
parent1d12d35284b74b7257b84ba0cef1e82a66d73aea
oprofile, x86: Fix overflow and warning (commit 1d12d35)

Following fixes for:

 1d12d35 oprofile, x86: Convert memory allocation to static array

Fix potential buffer overflow.

Fix the following warning:

 arch/x86/oprofile/op_model_ppro.c: In function ‘ppro_check_ctrs’:
 arch/x86/oprofile/op_model_ppro.c:143: warning: label ‘out’ defined but not used

Cc: Maarten Lankhorst <m.b.lankhorst@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_ppro.c