diff options
-rw-r--r-- | kernel/trace/ftrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index eadd0eaea9b6..11d94f2dc485 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -307,7 +307,7 @@ void ftrace_release(void *start, unsigned long size) | |||
307 | unsigned long e = s + size; | 307 | unsigned long e = s + size; |
308 | int i; | 308 | int i; |
309 | 309 | ||
310 | if (!start) | 310 | if (ftrace_disabled || !start) |
311 | return; | 311 | return; |
312 | 312 | ||
313 | /* No interrupt should call this */ | 313 | /* No interrupt should call this */ |
@@ -1567,7 +1567,7 @@ static int ftrace_convert_nops(unsigned long *start, | |||
1567 | 1567 | ||
1568 | void ftrace_init_module(unsigned long *start, unsigned long *end) | 1568 | void ftrace_init_module(unsigned long *start, unsigned long *end) |
1569 | { | 1569 | { |
1570 | if (start == end) | 1570 | if (ftrace_disabled || start == end) |
1571 | return; | 1571 | return; |
1572 | ftrace_convert_nops(start, end); | 1572 | ftrace_convert_nops(start, end); |
1573 | } | 1573 | } |