X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Foprofile%2Fcpu_buffer.c;h=7ba78e6d210e72ac9b41395ccc25fb6b4bfcd658;hb=ba6271ea6324decab4c47c4a55de95188d930792;hp=2450b3a393ff37f6ab1bd02d523f38027a838671;hpb=fcff474ea5cb17ff015aa40e92ed86fede41f1e2;p=linux-2.6 diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c index 2450b3a393..7ba78e6d21 100644 --- a/drivers/oprofile/cpu_buffer.c +++ b/drivers/oprofile/cpu_buffer.c @@ -38,8 +38,10 @@ void free_cpu_buffers(void) { int i; - for_each_online_cpu(i) + for_each_online_cpu(i) { vfree(per_cpu(cpu_buffer, i).buffer); + per_cpu(cpu_buffer, i).buffer = NULL; + } } int alloc_cpu_buffers(void)