From: Ulf Hansson Date: Tue, 27 Jan 2015 20:13:43 +0000 (+0100) Subject: PM / Domains: Free pm_subsys_data in error path in __pm_genpd_add_device() X-Git-Tag: fixes-v4.0-rc1~160^2~3^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e235685de3f7e53e17d671b2379df10c6dfa4f2;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed