Rafael J. Wysocki
10659ab7b5
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 <rafael.j.wysocki@intel.com>
Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
2013-08-07 23:02:50 +02:00
..
2013-06-29 15:04:07 +02:00
2013-04-10 13:19:26 +02:00
2013-05-22 12:43:33 +02:00
2013-06-24 18:18:58 +05:30
2013-05-12 14:04:15 +02:00
2013-04-10 13:19:25 +02:00
2013-06-04 14:25:59 +02:00
2013-04-01 01:11:36 +02:00
2013-07-16 22:46:48 +02:00
2013-06-21 01:06:34 +02:00
2013-06-25 22:42:37 +02:00
2013-06-21 01:06:34 +02:00
2013-06-21 01:06:34 +02:00
2013-08-07 23:02:49 +02:00
2013-06-21 01:06:34 +02:00
2013-06-05 13:51:29 +02:00
2013-04-02 15:26:32 +02:00
2013-08-07 23:02:50 +02:00
2013-04-10 13:19:25 +02:00
2013-04-10 13:19:25 +02:00
2013-06-24 18:18:58 +05:30
2013-07-14 19:36:57 -04:00
2013-06-24 13:19:27 +02:00
2013-04-02 15:24:00 +02:00
2013-02-21 14:58:40 -08:00
2013-02-21 14:58:40 -08:00
2013-02-21 14:58:40 -08:00
2013-04-22 00:24:37 +02:00
2013-06-24 18:18:59 +05:30
2013-02-21 14:58:40 -08:00
2013-06-04 14:25:59 +02:00
2013-04-02 15:24:00 +02:00
2013-03-04 14:23:11 +01:00
2013-06-04 14:25:59 +02:00
2013-06-24 18:19:00 +05:30
2013-04-08 13:02:31 +02:00
2013-07-23 04:18:28 +02:00
2013-05-12 14:04:16 +02:00
2013-07-03 14:35:40 -07:00
2013-06-27 21:46:45 +02:00
2013-06-18 13:53:11 +05:30
2013-06-04 14:25:59 +02:00
2013-07-14 19:36:57 -04:00
2013-07-14 19:36:57 -04:00
2013-07-14 19:36:57 -04:00
2013-06-04 14:25:59 +02:00
2013-07-03 14:35:40 -07:00
2013-04-02 15:24:00 +02:00
2011-05-19 18:51:07 -04:00
2011-05-19 18:51:07 -04:00
2013-07-14 19:36:57 -04:00
2013-06-04 14:25:59 +02:00
2013-06-07 13:44:39 +02:00
2013-06-24 13:26:39 +02:00
2013-06-07 13:44:39 +02:00
2013-06-07 13:44:39 +02:00
2013-06-04 14:25:59 +02:00
2013-07-14 19:36:57 -04:00
2011-05-19 18:51:07 -04:00
2013-07-14 19:36:57 -04:00
2012-09-09 22:05:30 +02:00
2013-04-10 13:19:26 +02:00
2013-04-10 13:19:26 +02:00
2013-06-04 14:25:59 +02:00
2013-04-10 13:19:26 +02:00
2013-06-05 14:19:28 +02:00
2013-06-04 14:25:59 +02:00
2013-06-04 14:25:59 +02:00
2013-05-20 23:04:28 +09:00
2013-07-15 01:31:37 +02:00
2013-06-27 21:47:03 +02:00
2013-05-20 23:04:28 +09:00
2013-05-20 23:04:28 +09:00
2013-07-04 11:40:58 -07:00
2013-05-20 23:04:28 +09:00
2013-04-02 15:24:00 +02:00
2013-04-10 13:19:24 +02:00
2013-04-10 13:19:24 +02:00
2013-06-04 14:25:59 +02:00
2013-04-10 13:19:25 +02:00
2013-06-04 14:25:59 +02:00
2013-06-04 14:25:59 +02:00
2013-06-04 14:25:59 +02:00
2013-06-04 14:25:59 +02:00
2013-04-02 15:24:00 +02:00
2012-01-26 16:49:06 -08:00
2011-05-19 18:51:07 -04:00
2013-04-02 15:24:00 +02:00
2013-06-27 21:47:03 +02:00
2013-04-10 13:19:26 +02:00