PM / Domains: Fix memory leak on error path in pm_genpd_attach_cpuidle
authorjhbird.choi@samsung.com <jhbird.choi@samsung.com>
Mon, 22 Oct 2012 22:54:38 +0000 (00:54 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 22 Oct 2012 22:54:38 +0000 (00:54 +0200)
commitdebe081aaa4d247b9957ac2336d84deab32d9909
tree0ca76f03976a6763a57d893c0c9f3340e73bbcc4
parent2978af545b9a1ed221e23fb24ae4559bec6ad70d
PM / Domains: Fix memory leak on error path in pm_genpd_attach_cpuidle

If pm_genpd_attach_cpudidle failed we leak memory stored in 'cpu_data'.

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c