Browse Source

Merge branch 'oprofile-for-tip' of git://git.kernel.org/pub/scm/linux/kernel/git/rric/oprofile into x86/urgent

Ingo Molnar 16 years ago
parent
commit
3d994e1076
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/x86/oprofile/op_model_ppro.c

+ 1 - 1
arch/x86/oprofile/op_model_ppro.c

@@ -69,7 +69,7 @@ static void ppro_setup_ctrs(struct op_msrs const * const msrs)
 	int i;
 
 	if (!reset_value) {
-		reset_value = kmalloc(sizeof(unsigned) * num_counters,
+		reset_value = kmalloc(sizeof(reset_value[0]) * num_counters,
 					GFP_ATOMIC);
 		if (!reset_value)
 			return;