diff options
| author | Rafael J. Wysocki <[email protected]> | 2013-08-04 01:19:41 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2013-08-07 23:02:50 +0200 |
| commit | 10659ab7b50e963429f1a681882404ca37aa584c (patch) | |
| tree | a72a4499d7a8034342a4d498ab120b78249bf17d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 71c3461ef7c67024792d283b88630245a6c169ba (diff) | |
cpufreq: Avoid double kobject_put() for the same kobject in error code path
The only case triggering a jump to the err_out_unregister label in
__cpufreq_add_dev() is when cpufreq_add_dev_interface() fails.
However, if cpufreq_add_dev_interface() fails, it calls kobject_put()
for the policy kobject in its error code path and since that causes
the kobject's refcount to become 0, the additional kobject_put() for
the same kobject under err_out_unregister and the
wait_for_completion() following it are pointless, so drop them.
Signed-off-by: Rafael J. Wysocki <[email protected]>
Reviewed-by: Srivatsa S. Bhat <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions