oprofile: fix an overflow in ppro code
commita4a16beadea041ab601e65b264b568e8b6b4f68d
authorEric Dumazet <dada1@cosmosbay.com>
Mon, 10 Nov 2008 08:05:37 +0000 (10 09:05 +0100)
committerRobert Richter <robert.richter@amd.com>
Mon, 17 Nov 2008 17:47:36 +0000 (17 18:47 +0100)
tree44de0ad9b25cf1eb4f23f7f0fae4125955ec2990
parent9bf1a2445f3c569098b8de7097ca324e65abecc2
oprofile: fix an overflow in ppro code

reset_value was changed from long to u64 in commit
b99170288421c79f0c2efa8b33e26e65f4bb7fb8 (oprofile: Implement Intel
architectural perfmon support)

But dynamic allocation of this array use a wrong type (long instead of
u64)

Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/x86/oprofile/op_model_ppro.c