Ulf Hansson 3e235685de PM / Domains: Free pm_subsys_data in error path in __pm_genpd_add_device()
The error path in __pm_genpd_add_device() didn't decrease the reference
to the struct pm_subsys_data.

Let's move the calls to dev_pm_get|put_subsys_data() into
genpd_alloc|free_dev_data() to fix this issue and thus prevent a
potential memory leakage.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2015-02-03 22:56:54 +01:00
..
2014-07-04 18:05:05 +01:00
2014-12-14 16:10:09 -08:00
2014-12-14 16:10:09 -08:00
2010-05-21 09:37:29 -07:00
2014-12-14 16:10:09 -08:00
2014-09-01 13:48:59 +02:00