summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2015-01-27 23:13:43 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-02-04 00:56:54 +0300
commit3e235685de3f7e53e17d671b2379df10c6dfa4f2 (patch)
treee0f49a6a702b6f752cbcd2e740e96c14c47e208c /usr
parentc0356db7d1b66840882744cbd9d9c5960b2d88c7 (diff)
downloadlinux-3e235685de3f7e53e17d671b2379df10c6dfa4f2.tar.xz
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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions