aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-report
diff options
context:
space:
mode:
authorViresh Kumar <[email protected]>2014-02-28 14:15:21 +0530
committerThomas Gleixner <[email protected]>2014-03-04 12:30:29 +0100
commitc24a4a369419c360c323865b91198878275c1481 (patch)
treecb526ee4537a3905c50dfc8a06413967bdf904ee /tools/perf/scripts/python/bin/stackcollapse-report
parentbce19369515ff77033d0916cfbc356eca2be9f63 (diff)
timer: Check failure of timer_cpu_notify() before calling init_timer_stats()
timer_cpu_notify() should return NOTIFY_OK and nothing else. Anything else would trigger a BUG_ON(). Return value of this routine is already checked correctly but is done after issuing a call to init_timer_stats(). The right order would be to check the error case first and then call init_timer_stats(). Lets do it. Signed-off-by: Viresh Kumar <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/c439f5b6bbc2047e1662f4d523350531425bcf9d.1393576981.git.viresh.kumar@linaro.org Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions