oprofile: fix uninitialized use of struct op_entry
authorRobert Richter <robert.richter@amd.com>
Sat, 17 Jan 2009 16:13:27 +0000 (17:13 +0100)
committerIngo Molnar <mingo@elte.hu>
Sat, 17 Jan 2009 16:26:39 +0000 (17:26 +0100)
commitfdb6a8f4db813b4e50f4e975efe6be12ba5bf460
treeffb4cd30eb41639779925f7c81eaba0e95e9261a
parentc903ff837909ccada51243307d4239f86af40179
oprofile: fix uninitialized use of struct op_entry

Impact: fix crash

In case of losing samples struct op_entry could have been used
uninitialized causing e.g. a wrong preemption count or NULL pointer
access. This patch fixes this.

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
drivers/oprofile/cpu_buffer.c
drivers/oprofile/cpu_buffer.h