]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: Explain the kobject_put() in cpufreq_policy_alloc()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 10 May 2019 10:35:53 +0000 (12:35 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 May 2019 08:43:53 +0000 (10:43 +0200)
commitc6e488ca7542fcd38fbcab2cb58d3e264285b798
treec7ab1416d6435c0caeb5cd664d68998c5b2444c8
parent3252fd7a37f93897f4920f719c6ab825d7e3fe23
cpufreq: Explain the kobject_put() in cpufreq_policy_alloc()

It may not be particularly clear why the kobject_put() after
failing kobject_init_and_add() in cpufreq_policy_alloc() is not
redundant, so add a comment to explain that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq.c