Commit fc4c73554c9d93b3e495f2f7acae1323b0d5db84

Authored by Matt Fleming
Committed by Steven Rostedt
1 parent 8650ae32ef

ftrace: Fix the conditional that updates $ref_func

Fix the conditional that checks if we already have a $ref_func and that
the new function is weak. The code as previously checking whether either
condition was false, and we really need to only update $ref_func is both
cconditions are false.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
LKML-Reference: <1248365775-25196-1-git-send-email-matt@console-pimps.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

scripts/recordmcount.pl
... ... @@ -414,7 +414,7 @@
414 414 $read_function = 0;
415 415 } else {
416 416 # if we already have a function, and this is weak, skip it
417   - if (!defined($ref_func) || !defined($weak{$text})) {
  417 + if (!defined($ref_func) && !defined($weak{$text})) {
418 418 $ref_func = $text;
419 419 }
420 420 }