tracepoints: fix disable
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Fri, 14 Nov 2008 22:47:42 +0000 (17:47 -0500)
committerIngo Molnar <mingo@elte.hu>
Sun, 16 Nov 2008 08:01:31 +0000 (09:01 +0100)
commitde0baf9ad661ac630a45a50ea1717cc4f4b33ace
tree71c95e555b053f1e03f0befaa457d312e23dc919
parent2504ea5edfebb14133b8571c20785cdc077e07d2
tracepoints: fix disable

Impact: fix race

Set the probe array pointer to NULL when the tracepoint is disabled.
The probe array point not being NULL could generate a race condition
where the reader would dereference a freed pointer.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/tracepoint.c