mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 11:16:11 +00:00
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>
This commit is contained in:
parent
2504ea5edf
commit
de0baf9ad6
1 changed files with 1 additions and 0 deletions
|
@ -262,6 +262,7 @@ static void set_tracepoint(struct tracepoint_entry **entry,
|
|||
static void disable_tracepoint(struct tracepoint *elem)
|
||||
{
|
||||
elem->state = 0;
|
||||
rcu_assign_pointer(elem->funcs, NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue